Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change IDs not sequential in ChangeGroup table in Database

We create custom SSRS reports for our Jira instance using SQL procedures that we develop ourselves. We migrated to Data Center this summer (2021) and have noticed a particular issue with the change history table.

The proc in question is querying status changes and where we use the Change ID as the basis for the sequence of these changes. We've discovered recently that the change ID is not in sequence with the timestamp of the changes in the changegroup table (breaking the reporting logic).

Has anyone else come across this? Is it a new thing to do with Data Center or are sets of ChangeIDs reserved by the system?

1 comment

This is one of the reasons you should not be using the database for reporting - it's not intended for it, and you've made an incorrect assumption about how it works.

The change id in the changegroup table is not intended to be any indicater of order, and absolutely won't be in some cases (one of which is simply "data center")

Your reporting should never have assumed that IDs are ordered by the date/time on the change history, they should be looking at the date/time itself for an order.  Or, better, not looking at the database at all.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

144 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you