Groovy conditions for custom field not returning correct values?

Chuck Vanderwist March 6, 2013

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

2 votes
Answer accepted
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.
March 6, 2013

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
TAGS
AUG Leaders

Atlassian Community Events