direct jira database changes can not immediately take effect

i want to auto release version using sql script.

so i set "RELEASED" field's value to 'true' in table "projectversion".

when i update RELEASED' value using sql script,it doesn't immediately takes effect.

the updated version will display 'released',only after some manually changes on "Versions" tab.

for example,i changed version "V1" 's released state using sql script."V1" still displays "unreleased" in UI.

but when i manually change the version "V2"'s version name(i think this manual action trigger the synchronizing between jira ui cache and the database ),then the version "V1"'s released state will be 'released'.

1 answer

1 accepted

2 votes

No. You can NOT use SQL to amend a Jira database while it is running.

It caches data, and has no way of knowing that you're doing the updates. You can irrepairably damage your installation.

You REALLY need to do the following IMMEDIATELY:

  • Stop Jira
  • Run the SQL to reverse your changes
  • Restart Jira
  • Re-index it
  • Run the integrity checker

In the longer term, you need to code something that uses the API, but I'd concentrate on undoing the damage you may have done already

Yes. Somewhere near the top, in big red letters ;-)

Just to add on, releasing a version does more than just setting that value to true in the table. It also looks at unreleased issues in the release and prompts the user to move to a new release or resolve them.

It is wise to follow Nic's advise on coding something that uses the API.

thanks for all your advisement!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,156 views 13 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot