It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Prevent a value from being selected

rikkin patel Aug 03, 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

1 vote
Volodymyr Krupach Aug 03, 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 Aug 03, 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?

1 vote
JamieA Aug 03, 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 Aug 04, 2015

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

JamieA Aug 04, 2015

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

rikkin patel Aug 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".

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

167 views 21 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you