Can you help me, how to set automation reminder(send email) when now date is 90 days before due date
Asked by Agnes:

I need a reminder automatically always starts when the now Date is 90 days before due date of my issue/task, then continually after that the reminder sent again every 1 weeks.

How can I set this condition?

Thank you


Answers:
author: Mark Segall
body: Hi [@Agnes](/t5/user/viewprofilepage/user-id/5020488) and welcome to the community!

You had me intrigued with the need for weekly updates as I was thinking there has to be a straightforward way to handle this. Here's what I did in my test environment:

* TRIGGER: Scheduled (Daily)
  *

    ```
    statusCategory != Done AND dueDate >= startOfDay() AND dueDate < startofDay(91d)
    ```

* IF CONDITION (Advanced Compare): Here we check to see if this is the 90 day warning
  *

    ```
    {{now.plusDays(90).jiraDate}}
    Equals
    {{issue.dueDate}}
    ```

  * ACTION: Send Email
* ELSE CONDITION (Advanced Compare): Here's where we're checking to see if the issue is exactly n weeks from the Due Date. This formula is evaluating whether it's a whole number. If it is, send another alert.
  *

    ```
    {{#=}}FLOOR({{now.diff(issue.dueDate).days}}/7){{/}}
    Equals
    {{#=}}CEILING({{now.diff(issue.dueDate).days}}/7){{/}}
    ```

  * ACTION: Send Email

Here's a screenshot of what I did. I added variables in here for testing, but they could also be useful for giving dynamic email messages (e.g. You have n weeks remaining until your due date):

![2022-08-31_13-11-27.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/213763i58AA278844DE5737/image-size/large?v=v2&px=999 "2022-08-31_13-11-27.jpg")

comments: author: Agnes
body: Dear [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) ,

Thank you for your support. I have already tried it and success.

I can use it for my tasks..

Really appreciate for your response and help :)


author: Mark Segall
body: Fantastic!


author: Olha Onofriichuk_SaaSJet
body: Hi, [@Agnes](/t5/user/viewprofilepage/user-id/5020488)

Actually, this may be easily done whin any amount of reminders you need. Recently, I've written a few articles about how you can set this process up:

* [Notify before the deadlines of Jira issues](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Notify-before-the-deadlines-of-Jira-issues/ba-p/2076547)
* [How to send a few notifications before the due date](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-to-send-a-few-notifications-to-the-reporter-before-the-due/ba-p/2090696)

If you need, I (or my team) can show you how to set automation reminder whenever you need via [SLA Time and Report for Jira](https://marketplace.atlassian.com/apps/1220741?utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Can-you-help-me-how-to-set-automation-reminder_20220901) add-on. This plugin can definitely help you with your question.

Let me know, if you need more information or help with such settings.

Have a great day.

Sincerely,  
Olha

comments: author: Agnes
body: Dear [@Olha Onofriichuk_SaaSJet](/t5/user/viewprofilepage/user-id/4868977) ,

Well noted and thank you for your support..


author: Olha Onofriichuk_SaaSJet
body: [@Agnes](/t5/user/viewprofilepage/user-id/5020488) I'm glad it helped you! Feel free to message me if you need any help with setting up sending the reminders.