✅ Send me an email when a contract is 7 days away from expiring.
💡 Use Case
You want to be notified in advance when a contract is approaching its Target End Date, so you have time to take action (renew, close, escalate, etc.).
🛠️ How to Set Up the Automation Rule
Step 1: Open Automation Settings
Step 2: Add the Trigger
Choose Scheduled as the trigger type.

Set it to run daily (e.g., every morning at 12 PM).
Specify the time at which the reminder will be dispatched.
Check ✅ “Run a JQL search and execute actions for each issue.”
Step 3: Enter JQL Condition
Use the following JQL to target contracts expiring in the next 7 days:
issuetype = Contract Issue Type AND "Target end" >= now() AND "Target end" <= startOfDay("+7d") AND status != Done
✔️ What this does:
Step 4: Add an Action – Send Email

Please populate the email content with the following example, or you may customize it to suit your specific requirements.
To: Select sender options from Dropdown or a static address like contracts@company.com.
Email Subject:
Reminder: Contract {{issue.key}} – "{{issue.summary}}" is expiring on {{issue.Target end}}
Email Body:
Hi {{issue.assignee.displayName}},
This is a reminder that the contract {{issue.key}} – "{{issue.summary}}" is scheduled to end on {{issue.Target end}}.
Please take the necessary action — renew, extend, or close the contract before the deadline.
🔗 View contract in Jira: {{issue.url}}
— Jira Automation

Step 5: Save and Enable