Do something (send custom email) when issue is unassigned

Deleted user April 22, 2016

Hi everyone

Can somebody tell me the proper syntax for a condition where I want to check if the issue is unassigned?

So far I've tried:

issue.assignee == '-1'

issue.assignee == 'EMPTY'

issue.assignee == 'Unassigned'

issue.assignee == EMPTY

None of these work however.

Is there any documentation on groovy syntax?

Thanks for any help.

1 answer

1 accepted

3 votes
Answer accepted
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.
April 22, 2016

Hi Marius,

If the issue is unassigned then 

issue.assignee == null or 

!issue.assignee

 

Deleted user April 22, 2016

Thanks. Worked perfectly!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events