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 votes

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,098 views 4 9
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