Validate the custom field value to execute a post function

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

I used the condition below and it worked.

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

0 vote

That is not the script runner plugin.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

25 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you