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'.
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:
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
That should be placed in the FAQ, here. https://confluence.atlassian.com/display/JIRA/JIRA+Administrators+FAQ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. Somewhere near the top, in big red letters ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i use CLI as the resolution.
https://answers.atlassian.com/questions/74037/is-it-possible-use-soap-api-via-php
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.