Condition to check that no resolution has been set

Cristina_Abunei
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.
February 14, 2016

Hello,

I need the condition to check if an issue has no resolution set.

I've tried: 

issue.resolution?.name == 'NULL'

issue.resolution?.name == 'Unresolved'

issue.resolution?.name == ''

None of these work. Does anyone know the correct condition?

Thanks, 

Cristina

1 answer

1 accepted

0 votes
Answer accepted
Vasiliy Zverev
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.
February 15, 2016

try this one: 

issue.getResolutionObject() == null
Cristina_Abunei
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.
February 15, 2016

Yup, that works. Thank you!

Suggest an answer

Log in or Sign up to answer