How to check old Issues


I am writing a custom plugin. I would like to have a way to check old issues within the plugin itself to prevent them from being raised again as part of the plugin.
Also is there any way for the plugin to just scan the new files avoiding the old files?