Is there any specific reasony you want to updated tickets in the database?
Don't you want to enabled editing closed issues? This way you can edit the issues normally.
Or you can add a transition to the Closed status. The transition could have a screen with the Priority field on it or you can add a post function to this transition to set the priority.
Further to the answers from @Tibor Hegyi [META-INF] and Vasiliy Zverev I would suggest you amend the workflow to allow you to edit closed issues (you can and probably should revert this once you have made your change). Then use the bulk edit feature to select the issues you want to update the priority on and make that change. Again this may require you to adjust your permission settings.
I strongle reccomend DO NOT make any updates via SQL. reasons:
Instead SQL try this code example (you could run it via SCriptRunner)
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.event.type.EventDispatchOption import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.MutableIssue MutableIssue issue = ComponentAccessor.getIssueManager().getIssueObject("ZV2-1"); issue.setPriorityId("1"); //1 is for blocking priority ComponentAccessor.getIssueManager().updateIssue(ComponentAccessor.getJiraAuthenticationContext().getUser().getDirectoryUser(), issue, EventDispatchOption.ISSUE_UPDATED, false);
Do this with the JIRA Automation Plugin. You can intercept issue updated events, and update the priority field with zero programming.
As a general rule of thumb, never update the database if there's another way to solve your problem. Updating the database directly will lead to a plethora of problems (out of date caches, broken indexes, etc.) unless you know what you are doing.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
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!
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