The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can I do an #if statement to exclude issue types in an automated email?

Tom Scoggin
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 Champions.
October 22, 2024

See screen shot.

If statement.PNG

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Rudy Holtkamp
Community Champion
October 22, 2024

hi @Tom Scoggin ,

This should do it:

{{#if(not(equals(issueType.name,"Data")))}}

...

{{/}}

Edit: added the not()

Tom Scoggin
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 Champions.
October 22, 2024

Thanks @Rudy Holtkamp

I used a combination of these two to get what I needed to filter my results. 

Table 1

{{#if(and(not(equals(issueType.name, "Data")), not(equals(issueType.name, "Change"))))}}

Table 2

{{#if(or(equals(issueType.name, "Data"), equals(issueType.name, "Change")))}}

Like Rudy Holtkamp likes this
1 vote
Walter Buggenhout
Community Champion
October 22, 2024

Hi @Tom Scoggin

Assuming that this is a screenshot from an automation rule, you must be performing a filter somewhere before this point in your rule. Have you considered just excluding the issues in that filter?

If that does not help, please share full details of your automation rule so we can support you more effectively.

Hope this helps!

Tom Scoggin
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 Champions.
October 22, 2024

Thanks @Walter Buggenhout . I need to show the ones I'm excluding from this table and will add them to another table in the same email.

Like Walter Buggenhout likes this
TAGS
AUG Leaders

Atlassian Community Events