Validate the custom field value to execute a post function

Ana Vier March 27, 2014

I have a custom field A (Select List) and I want to set the value of another custom field B based on the value of the custom field A.

I'm trying to use the post function 'Set Field Value to constant or Groovy expression' of the Script Runner plugin, but I'm having problems with the 'Conditional execution'.

The expression that I'm using is:

if (issue.get("customfield_11200").value == "[ADM]")

return true

else

return false

How can set the value of the field B based on field A?

2 answers

1 accepted

1 vote
Answer accepted
Ana Vier April 3, 2014

I used the condition below and it worked.

issue.get("customfield_11200").value.toString() == "ADM"

0 votes
JamieA
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.
April 3, 2014

That is not the script runner plugin.

Suggest an answer

Log in or Sign up to answer