I want to change a value for custom field when some condition matches in transition screen using scr

shahjad ahemad November 15, 2021

I have a custom field name "RCA Level II" which value is set default as "UNKNOWN" . when transition screen comes I want this value to get changed while asking user to update the value the value should be changed from "UNKNOWN" to different value from the option given in the context for that field .. the form/screen should not get submit when value is "UNKNOWN"... can some one please write the script for this in scriptrunner ..

 I'm new to scriptrunner .. can someone please suggest me what I need to do for this issue..  if there is any script or something related to that is present you can share with me please respond..

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2021

You could accomplish this with scriptrunner Behaviours.

But I think the better option would be to make your RCA Level II field not have any default values and remove the "UNKNOWN" option.

This will make the field default to "None"

Then all you would nee to do is add a validator to your transition that the "RCA Level II" field is required. This will force the user to select something other than None when they try to Submit

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events