Forums

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

Error prompt while editing priority

C S Seshagiri February 12, 2024

Hi Team,

I have made priority as required on create screen.  Further we need a error message while users are trying to change to particular priority.

We have script runner in place. Is there a way that we can achieve it.

Thanks!!


1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
February 13, 2024

Hi C S Seshagiri,

I can confirm that to achieve your requirement inside of Jira Cloud you will need to use the workflow validators feature provided by ScriptRunner for Jira Cloud.

Workflow validators use the Jira Expression framework provided by Atlassian, and I can confirm we have some examples here to show their syntax.

In your case, the example on line 68 will help show how a priority must be required and not allow the highest value.

Then, in the Validation failed message box, you can enter the text for the error you wish to display.

Another way to make the priority field required is to use the Behaviours feature, which does not allow an error message to be set to only a description below a field using the setDescription() method.

I hope this information helps.

Regards,

Kristian

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events