⚠️ Let me know immediately if any contract has already passed its Target End Date.

💡 Use Case

Sometimes contracts expire without being renewed or closed. This rule sends an alert when a contract’s Target End Date is already in the past, and the issue is still open.

🛠️ How to Set Up the Automation Rule

Step 1: Open Automation Settings

Step 2: Add the Trigger

Step 3: Enter JQL Condition

issuetype = Contract Issue Type AND "Target end" < now() AND status != Done 

✔️ What this does:

In the JQL query, make sure to use the issue type you’ve set as Contract Issue Type in the Pact Configuration.

Step 4: Add an Action – Send Email

Email Subject:

Alert: Contract {{issue.key}} – "{{issue.summary}}" has expired

Email Body:

Hi {{issue.assignee.displayName}},

The contract {{issue.key}} – "{{issue.summary}}" has expired on {{issue.Target end}}, but is still open.

Please take immediate action — review, renew, or close the contract as appropriate.

🔗 View issue in Jira: {{issue.url}}

— Jira Automation
mailContent.png

Step 5: Save and Enable