Forums

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

Due Date Automation

Barış Özer
Contributor
April 4, 2022

hello everyone,

In a project, we want to send an e-mail to the person assigned to the assignee 7 days before the due date in each ticket. And I want an e-mail to be sent to an e-mail address I want.

1 day after the due date expires, I want to send an e-mail to the assigne and to the e-mail address I want.

Need JQL?

Or can I do it with Automation?

 

I ask for your help.

 

Best regards.

2 answers

2 accepted

1 vote
Answer accepted
Tauwa
Contributor
April 4, 2022

Here is the solution: 

  • Filter Subscription: 
    • Requirement1: 7 days before due date
      • Create a JQL Filter
        due < 7d and due > now() and assignee = currentUser()
      • Create a subscription to all your users but you have to identify the group. You can select a group where all your users are. Don't worry the email will be sent only to the assignee. You can send this on a daily basis for example (or choose what you want)
    • Requirement2: 1 day after due date expires
      • Create a JQL Filter
        due = -1d and assignee = currentUser()
      • same as before. Notice though that with filter subscriptions you WILL NOT be able to use a public email address.
  • Automation: will do the same and even more. Because you will be able to send emails to a public email address

Hope it helps. 

Tauwa
Contributor
April 4, 2022

Capture d’écran 2022-04-04 à 10.10.40.png

Barış Özer
Contributor
April 4, 2022

First of all, thank you very much.

In the screenshot you took about Automation;

An e-mail will be sent to the assigne person 7 days before the due date.

1 day after the due date, an e-mail will be sent to the e-mail address I want, is it true?

Does the JQL you wrote work for this?

Barış Özer
Contributor
April 4, 2022

Can you share the rule details with a step-by-step screenshot?

If:matches then I can't find what to do.

Barış Özer
Contributor
April 4, 2022

@Tauwa 

I did as you showed.

7 days ago the notification will go and after 1 day the notification will be gone, is it true?

 

BGYS Automation2.PNGBGYS Automation.PNG

Tauwa
Contributor
April 4, 2022

Yes it is OK. Don't forget to accept the answer plz. 

cheers

Barış Özer
Contributor
April 4, 2022

@Tauwa 

 

I fixed the JQL code as below;

(due < 7d and due >=now()) OR (due > -1d)

Is it correct?

 

regards

Barış Özer
Contributor
April 4, 2022

@Tauwa 

(due < 7d and due >=now()) OR (due > -1d)

It started working correctly with this code.
But there is no ticket number in the content of the e-mail. How can we write?

 

Thx

Tauwa
Contributor
April 4, 2022
Barış Özer
Contributor
April 4, 2022

@Tauwa 

Where exactly do I need to write the smart value? To the content of the mail?

Can you post a screenshot example please?

Barış Özer
Contributor
April 4, 2022

@Tauwa 

I did it with issuekey,
Can we put the related issue as a link?

Barış Özer
Contributor
April 4, 2022

@Tauwa 

I did it, thanks a lot for your support (:

 

Best regards.

Like Tauwa likes this
Tauwa
Contributor
April 4, 2022

Great. You are an Automation Pro now :) 

Like Barış Özer likes this
Barış Özer
Contributor
April 5, 2022

@Tauwa 

Hello again,

Although there is a due date of August 1, the mail notification is gone.

Since the ticket has passed for 1 day, can you help me where am I doing wrong?

 

 

asdasdasd.PNGfdggdfgdfgd.PNG

Tauwa
Contributor
April 5, 2022

due < -1d NOT due > -1d

Barış Özer
Contributor
April 5, 2022

@Tauwa Hi,

(due < 7d and due >=now()) due < -1d NOT due > -1d

I don't understand what exactly to change?

Can you write the full version please

Barış Özer
Contributor
April 5, 2022

Hi @Tauwa 

If matches: I changed the part.
Is it correct ?

 

1234.PNG

0 votes
Answer accepted
Rajesh Ramankutty
Contributor
April 4, 2022

You can write JQL and Add Filter Subscription to it.

Barış Özer
Contributor
April 4, 2022

Is it done with automation?

Can you write sample code for JQL please?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events