hi. my name is choi
recently i try to use scriptrunner plugn in. but as i'm a beginner, i have a problem
we use our own jira workflow and
from 1step to 2step, user need to select custom field( this is call "GRADE" and
it has "None","A","B")
----this is what i want---
if user select "None" and try to move next step button click
show message "Select One Please"
if user select "A" and try to move next step button click
show message "Please Check"
i was trying to make it like this
select workflow step > validator > add validator > script validator > using simple script
but i don't know this is right or not
please help me
I would advise to add a behaviour on the select list custom field and use this script :
@BaseScript FieldBehaviours fieldBehaviours
def selectList = getFieldById(getFieldChanged())
def selectListValue = selectList.getValue()
case null : selectList.setError("Please select a value"); break;
case "A" : selectList.clearError(); selectList.setHelpText("Please check"); break;
default: selectList.clearError(); break;
This way, if the user select :
Hope that helps.
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