I have custom field and want to send the alerts when the expiry date is approaching..
How to achieve it..
Eg: Contract Expiry date
The date is approaching please take an action... Do we need to mention based on custom field and add in notification??
What I would do is set up a rule with a scheduled trigger, which is set to run every day (e.g. if you use a CRON statement of 0 0 9 * * ?, the rule will run at 9am every day).
Within this scheduled trigger, you are able to add a JQL which will action all of the issues found as part of the schedule, so if you wanted to send the notification for all tasks which are within 7 days of the Contract Expiry Date field, you could use a JQL of:
"Contract Expiry Date" > startofday() and "Contract Expiry Date" <= startofday("+7d")
You can then use one of the notification actions within the rule, such as Slack, Teams or email.
Hope this helps!
In that case, you can still use the scheduled trigger, but use the JQL of
"Contract Expiry Date" = startOfDay("+15d") - where the 15 is the number of days away from the Contract Expiry Date. You can of course set this to however many days you wish. The scheduled trigger will check every day for the tasks which are that many days away from the expiry date
@Suma Pralhad Kustagi Unfortunately there are no conditional triggers in the Automation feature (the Scheduled trigger is the closest you can get to this as you can add the JQL, however the rule will still trigger based on the set schedule).
I know with the ScriptRunner app you can add in conditions within the trigger, but this is a limitation of the Automation feature
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events