We have a Team Managed project in Jira that tracks the status of all our vendors.
Some of the notable fields we have include the following:
Business Owner (people field) - The person who has the relationship with the vendor
Renewal date (date field) - This is the date that the contract with the vendor is set to renew
Notice period (dropdown list) - The is the number of days required to give notice for the cancelation of the contract. Available options include, 30 days, 60 days, 90 days
I would like to create an automation rule which will send an email reminder to the business owner stating that the contract is due for renewal soon. The notification should go based on the notice period.
As an example. If the renewal date is 30 Nov and the notice period is 30 days, Then i should be able to send an email reminder to the business owner say 45 days prior to the renewal date.
is this possible using Automation and if so how would i do that?
Hi @Tim Larkman,
I agree with @Trudy Claspill, you need a Scheduled trigger and conditions to compare dates. I would also add that:
This is what your automation rule would look like:
Below are the smart values I'm using:
Hope this helps!
- Manon
Hi @Manon Soubies-Camy
thanks for your very detailed response.
I have created a new "Service management" project to handle my vendors. I found it gave me more flexibility.
In your automation field for "if Compare two values" is it taking the reminder date and subtracting 15 days to it? So for example.
Renewal date = 30 November
Notice Period = 30 days
Reminder date is thus 31 Oct. It then subtracts 15 days which takes us to 16 Oct.
The comment will then get sent on 16 Oct to the business owner? Is my understanding correct?
Also, Not sure why the rule doesn't like my "Status is not one of" Policy? Any Ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tim Larkman, yes, you're correct! Notice period = 30/60/90 days, and 15 is the number of days you want add on top of that to get your reminder on time.
For the "Incompatible component" error, it might be due to your Scheduled trigger, did you filter with a JQL query?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With your help i have managed to get this mostly working with only one hiccup remaining.
The "if: Compare two values" doesn't seem to want to work.
The audit log shows the following.
The issue condition part works perfectly.
The problem is in the Smart Values condition.
I would expect a comment to get generated for VEN-5 and VEN-1 but VEN-6 has a renewal date of 28 Aug 2025 so i would expect not to get a comment generated for this Vendor but regretfully i do. Not sure what im doing wrong here.
This is the comment i would expect not to receive.
This is the rule details.
As always, many thanks for your help on this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tim Larkman,
Thanks for the detailed screenshots! That's very weird because I tried using your values (renewal in August 2025 with a 60 days notice period), and it works as expected on my end: no comment is triggered for that issue.
Can you share a screenshot of your reminderDate and noticePeriod variables' configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, I found a typo in your noticePeriod variable: can you try and add a space in the smart value? You should type in the name of your custom field (which has a space), instead of the variable (which doesn't have a space):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very happy to hear it's now working! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tim Larkman -- Welcome to the Atlassian Community!
Adding to the other suggestions provided:
People-type fields (e.g., your Business Owner field) do not provide the email address to automation rules at this time: https://jira.atlassian.com/browse/AUTO-519
The two possible workarounds are:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Tim Larkman
Welcome to the Atlassian community.
Yes, it is possible. You could use an Automation Rule with a Scheduled trigger. The trigger could include a JQL to select the issues that match criteria. Perhaps you want to select all the issues for which the renewal date is in the future, or where the renewal date in sometime in the next 365 days.
You would schedule the rule to run daily.
You would then use conditions to determine if an email should be sent. The specifics of the conditions require clarification:
How do you determine that when the notice period is X days then you want to send the email at X+n days before the renewal date? How do you determine what "n" should be?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.