I'm using the Rest API to export all issues into our database. The problem is when an issue get's deleted there is no way of knowing that based on the issues export from the API. Is there a flag or someplace I should be looking to know which issues are deleted and which are not?
Nope. Deleted issues are gone, completely.
Is there a reason that something like a deleted flag doesn't get passed through? It basically makes it so without doing a full refresh then these deleted issues actually stay in the database without ever getting updated or removed.
No, you deleted the issue, it's gone. There's nothing to hang a flag on.
As you're taking data out of Jira, it's going to be up to you to work it out.
In almost all enterprise tools (salesforce, hubspot, etc) when records get deleted there is still a flag that persists within the database for that record such as deleted = TRUE or deleted_at = timestamp. I understand what you are saying with it being gone i just don't think that is the proper way to handle this type of thing. It should not be viewable within Jira but that would simply be a frontend distinction. Removing it completely from the API export creates all sorts of downstream effects for people who utilize the API to track issues.
Does anyone have a solution to this problem?
What problem?
How to know if the issue is deleted
You know an issue has been deleted when you can't see it any more. You don't need a flag.
It's a bit like putting up a sign that says "please don't read this sign" - utterly pointless and tells you nothing more that you found out by not having the sign in the first place.
It looks like you're new here. Sign in or register to get started.