I need to sync a mysql database with a subset of issues in JIRA.
Some issues are deleted or moved to another Project. Querying the JIRA Project results in error 400 for some issue IDs. This will be used for deleting these IDs from the mysql database, keeping the database in sync with JIRA.
However, when I query JIRA in batches of 1, 5, 10 or 20 issue IDs I get different results.
So eg. the batch of 5 IDs does not show all IDs that are missing. Batches of 1 however is not very efficient.
How can I get to know which IDs cannot be found in JIRA using batches of 20 or even bigger?