scriptrunner plugin help: set field1 value mandatory based on filed2 value during transition

mnpiad October 14, 2016

Hello,

I just installed scriptrunner plugin  on JIRA server 7.2. I want to  make field2 mandatory if field1 value is "yes" during workflow transition from dev----> dev_complete how and where should i set this up ?

 

Any help appreciated

Thanks

 

 

1 answer

0 votes
saravanan subramanian October 16, 2016

Try the below

A more complex example, where if the user user sets the select list field Demo to No, we require them to fill in a text field Reason for no demo:

 cfValues['Demo']?.value != 'No' || cfValues['Reason for No Demo']
mnpiad October 18, 2016

Where do ne need to put this script ?

saravanan subramanian October 18, 2016

Hi,

 

Add it to the validator function  in the work flow of  dev_complete state

Suggest an answer

Log in or Sign up to answer