referential integrity in Jira database?

Hi All,

There seems to be no referential integrity in Jira database. How could we achieve this?

Thanks and Regards,

Jenin C M

2 answers

0 vote

You don't really need it - the application handles it all internally. Adding referential integrity checks into the database would be pointless and could cause problems with the application.

Hi Nic,

Could you please brief me a bit more as how it handles it internally? Any examples will be very helpfull.

Thanks and Regards,

Jenin C M

I'm not sure what you're looking for here.

The application does things like "if you delete an issue, remove all the custom field, comments and history data for the issue".

I think it might be useful to know why you're asking about referential integrity?

There are lots of places where JIRA chooses not to make the DB data consistent. For example when you delete a filter, gadgets that were using the filter display "Filter not found", but the DB config for that gadget still refers to the deleted row in the searchrequests table. Or when you uninstall an add-on that provides a new custom field type, then reinstall the add-on, the data was never deleted.

But I do think that something like the Integrity Checker that scans for these cases and cleans up the JIRA data would be very useful in the long term

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

543 views 6 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you