Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

shahjad ahemad
Contributor
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
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
TAGS
AUG Leaders

Atlassian Community Events