Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Send Custom email post function condition issue.

Aravindi Amarasinghe
Contributor
February 7, 2018

Hi All, 

I have requirement to trigger two different custom emails for following conditions

When Priority =Priority 1, custom field "Test Phase" = AAA or BBB and Custom field Detected Release != null trigger email 1

For this I used this condition and it works fine. 

issue.priority?.name == 'Priority 1' && cfValues['Test Phase']?.value in ['AAA','BBB'] && cfValues['Detected in release']?.value != null

 

I need to send email 2 for the opposite of the above. ie. When Priority =Priority 1, custom field "Test Phase" != AAA or BBB and Custom field Detected Release == null 

Can some one modify the above condition for this requirement? 

 

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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 8, 2018

Myabe like this

!(issue.priority?.name == 'Priority 1' && cfValues['Test Phase']?.value in ['AAA','BBB'] && cfValues['Detected in release']?.value != null)
Aravindi Amarasinghe
Contributor
February 8, 2018

Awesome! It works! 

Thank you @Alexey Matveev! :D

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events