Fast track issue on custom field value

Betsson Licensing December 21, 2015

Hello, 
we need to fast track issues if custom field has a specific value
tried 

issue.get('customfield_12422') == 'Issued to User'

and

cfValues['Asset Status?'] == 'Issued to User'

condition without any luck.

Changing the conditon to issue.issueTypeObject.name == 'Bug' works for fast tracking the issue so problem will be in the conditon it self.

Any suggestions?

2 answers

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.
December 21, 2015

I guess Asset Status? is a single select list, in which case you want:

cfValues['Asset Status?']?.value == 'Issued to User'
0 votes
Thanos Batagiannis _Adaptavist_
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.
December 21, 2015

Hi Betsson,

Is the ? part of the custom field's name ? If you were trying to use null safe operator there is no need, because if the value of the cfValues['Asset Status'] is null then the condition will be false. Also did you check your logs for any errors ?

Kind regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events