Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Prevent a value from being selected

rikkin patel August 3, 2015

I am trying to prohibit the transition if the selected value "To Be Classified" is selected by the user from a select list field. What are my options to add such validation?.. Sorry I am new to JIRA. 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
JamieA
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 Leaders.
August 3, 2015

With a simple scripted validator, which I presume is what you are asking about although your question is not very clear, something like:

cfValues['Name of field']?.value != "To be classified"
rikkin patel August 4, 2015

Thanks Jamie.. So using the groovy script runner I should be able to add this validation?

JamieA
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 Leaders.
August 4, 2015

y, with workflow -> validators, "simple scripted validator"

rikkin patel August 11, 2015

Hi Jamie, I got the script runner plugin installed and inputted the above simple script validator that you gave. The validator kicks off at the transition. However, it wont like be pass through the transition even if I select other values besides "To be classified".

1 vote
Volodymyr Krupach
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 Leaders.
August 3, 2015

I guess you can utilize this addon: https://marketplace.atlassian.com/plugins/com.innovalog.jmwe.jira-misc-workflow-extensions or create your own simple validator.

Also you can try this free addon https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities It has custom validator that can check value against regular expression: https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Validators but I never tried it.

rikkin patel August 3, 2015

Thanks V. However, I already have these plugins installed on instance but are useless for what I am trying to achieve. How about JIRA Scriptrunner plugin? Do you have any knowledge about it?

TAGS
AUG Leaders

Atlassian Community Events