I want to make a polling system to find changed and created issues without webhooks.
I can get issues which are recently created/updated with JQL.
But I also have to identify whether an update already applied and not.
At first, I tried to use history id which I can find changelog. (changelog - histories - id)
"changelog": {
"startAt": 0,
"maxResults": 3,
"total": 3,
"histories": [
{
"id": "10511",
it seems to be sequential, but some histories which created recently have smaller id than histories which created older.
so I want to ask.
1. Is history id in changelog sequential?
2. If (1) is yes, what is the reason some history have smaller id than expected?
3. Is there any other indicators which I can identify the order of changes in jira issue?(excepted "Created" in changelog)
Thanks for reading.
Welcome to the Atlassian Community!
No. It always increases, but it is not sequential. The ID is global, so every change to every issue increases the id.
You can rely on the ID to say "an ID is a point in time - a lower ID is for a change that was made before this one, and a higher ID was a change after this", but that's it. They can also skip numbers.
You should be reading created (and maybe last updated) date/time on the issues, and, in the history, the date/time stamp on the updates. The ID can't tell you much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.