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 Leaders.
October 22, 2024

See screen shot.

If statement.PNG

2 answers

1 accepted

3 votes
Answer accepted
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leaders.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events