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.
Community moderators have prevented the ability to post new answers.
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"
Thanks Jamie.. So using the groovy script runner I should be able to add this validation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
y, with workflow -> validators, "simple scripted validator"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.