Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validating priority field

Grant Donovan
Contributor
April 19, 2018

I want to ensure that the priority field is completed on a particular project when the issue is created but this doesn't seem to be possible.

I am using Jira Cloud

When an issue is created it gets set as

Priority: Not Assigned

I want to ensure that this value is changed before the issue transitions to a status.  The Validator Regular Expression Check doesn't have the Priority field listed, so I can't use that one.

How can I ensure that the Priority field has been set to something other than Not Assigned

Thanks

Grant

2 answers

1 accepted

0 votes
Answer accepted
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2014

Hi David,

Deleting the issues just on the jiraissue table on the database, will not delete all the related custom fields, etc and is not recommended.

You can run a JQL and bulk delete issues if you would like to do it within JIRA. This will also allow you to check the list of issues you are deleting.

If you are using CLI, you will have to run two commands, first to select the issues and check if the issues are the ones you want to delete, and second to delete the issues.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2014

To add my 2p - don't even think about doing it with SQL, it's messy, complex and you have to understand all of the relationships in intimate detail to get it right. For a single issue, you may have to delete from and/or update up to 36 tables (and that's an old version of JIRA, it's probably more now) For both bulk-edit and the CLI, I'd define a filter (as complex as you'd like - status, date, project, inside leg measurement, any variable you want) and go from there.

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2014

You need to construct the JQL to select the issues you want. I assume by age to be something based on either created date or updated date or similar. Once you have the JQL, the you can use getIssueList to see the list and runFromIssueList to remove them.

If you need to manually inspect the list, then bulk delete would be my choice. If you want to automate it, then spend the time to get the JQL right and use the CLI to do it by scheduling it in a job scheduler or Bamboo.

Suggest an answer

Log in or Sign up to answer