in einer Automation zwei Listen in einer E-Mail, einer {{#lookupIssues}}

Kristina Galwas October 8, 2024

Ist es möglich mit der {{ #if( Bedingung in einer Automation nach dem Fälligkeitsdatum zu filtern? 

Folgendes habe ich ausprobiert, leider werden damit die Listen leer. 

 

Screenshot 2024-10-09 065615.png

 

Screenshot 2024-10-09 065422.png

3 answers

0 votes
Marc - Devoteam
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 9, 2024

Hi @Kristina Galwas 

Can you provide a screenshot of the configuration of the branch action.

Is see you have set the variable as new {{distinctAssignee}}

I wold also urge to have a log action before the lookup to see what the values are for the variable {{distinctAssignee}}

 

Kristina Galwas October 9, 2024

Hi @Marc - Devoteam

I will gladly send you a screenshot

 

Screenshot 2024-10-09 135928.pngScreenshot 2024-10-09 140124.pngScreenshot 2024-10-09 140156.png

Marc - Devoteam
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 9, 2024

HI @Kristina Galwas 

If you place a log action before the lookup in the branch to see what the values are for the variable {{distinctAssignee}}.

Is there any result, when running the rule?

Marc - Devoteam
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 9, 2024
Kristina Galwas October 9, 2024

Hi @Marc - Devoteam 

I only get a result in a list if I remove the if ({{#if(durdate <= “0”)}} function.

 

the result when I remove the IF function looks like this:

Screenshot 2024-10-09 142741.png

with IF function I get the following result: (the list remains empty)

Screenshot 2024-10-09 143118.png

 

Marc - Devoteam
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 9, 2024

Hi @Kristina Galwas 

What kind of field type is "durdate"?

Is this a date field, number field or else?

Kristina Galwas October 9, 2024

Hi @Marc - Devoteam 

It is the due date - i.e. a date field.

I just saw that I have a typo in it, but even if I write duedate, I have the same behavior.

Marc - Devoteam
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 9, 2024

Hi @Kristina Galwas 

As it's a dat field you can't compare it with a number. You can only compare to a date.

So {{#if(durdate <= “0”)}} won't work, the "0" needs to be replaced with a date.

Kristina Galwas October 9, 2024

Hi @Marc - Devoteam

How can I build the function so that only the tickets that are already overdue are issued? In other words, if the due date is in the past?

maybe like this
{{#if(duedate <= today)}}

or

{{#if(duedate <= now())}}

Marc - Devoteam
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 9, 2024

HI @Kristina Galwas 

This should work:{{#if(duedate <= now())}}

today() is not a function in Jira

0 votes
Kristina Galwas October 9, 2024

 

Hello, thank you for your answer and your solution approach.

Unfortunately, this does not solve my problem.

I would like to display the following in an e-mail:

 

The due date has passed for the following tickets:

- IT-55: Test 1 due since 01.01.2024

- IT-18: Test 1 due since 09.05.2024

- IT-47: Test 1 due since 24.09.2024

 

The following tickets are still open:

- IT-105: Test 1 due since 15.10.2024

- IT-794: Test 1 due since 01.11.2024

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2024

Hello, Good day. You could try the following condition.

Screenshot 2024-10-09 at 11.30.38 AM.pngScreenshot 2024-10-09 at 11.30.45 AM.pngScreenshot 2024-10-09 at 11.30.53 AM.png

Kristina Galwas October 9, 2024

Hello, thank you for your answer and your solution approach.

Unfortunately, this does not solve my problem.

I would like to display the following in an e-mail:

 

The due date has passed for the following tickets:

- IT-55: Test 1 due since 01.01.2024

- IT-18: Test 1 due since 09.05.2024

- IT-47: Test 1 due since 24.09.2024

 

The following tickets are still open:

- IT-105: Test 1 due since 15.10.2024

- IT-794: Test 1 due since 01.11.2024

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events