Groovy conditions for custom field not returning correct values?

When attempting to evaluate a custom field (Radio button) value in Condition Tester

Using the condition:

cfValues['SE_Condition_B'] == 'TRUE'

I am not getting "true" result from this, even though the issue key I've entered does in fact contain The value "TRUE" for this Radio Button field.

The value seems to always return null, deduced from the following results

  • cfValues['SE_Condition_B'] == 'TRUE' (Condition tester Returns False)
  • cfValues['SE_Condition_B'] == 'FALSE' (Returns False)
  • cfValues['SE_Condition_B'] != 'TRUE' (Returns True)
  • cfValues['SE_Condition_B'] != 'FALSE' (Returns True)

WHY is this field coming back as null when we can verify on the EDIT screen that this field's value is in fact "TRUE"?

1 answer

1 accepted

This widget could not be displayed.

cfValues['SE_Condition_B'].value == 'TRUE'

Look for previous posts about this... cfValues will contain an Option object.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

72 views 2 3
Join discussion

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