I am trying to write a rule for priorities to automatically change when it is close to the due date.
Low due date is more than a month
Medium due date is a month
Critical means it is within a week.
Hi @ola ogunsola and welcome to the Community!
Technically, you can do that by running a scheduled automation rule that runs e.g. once a day for each of your conditions.
Use a JQL condition to fetch the issues you want to update like this:
Priority = Low AND due <= 30d
Then, for all issues returned by the JQL, update the priority to Medium.
You can then provide a second rule to update to critical, based on the following JQL:
Priority = Medium AND due <= 7d
In reality, I am not sure if you really want to do this. Automating this means you will not be very flexible in setting priorities manually if needs be. And you can easily use the above filters as the source for Service Desk queues, dashboard gadgets or filter subscriptions to make issues come to the surface all by themselves.
Hope this helps!
Thanks @Walter Buggenhout .
I tried this but it did not seem to work. Is there anything I am missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ola ogunsola,
You seem to have made things far too complicated. You don't need more than this:
The JQL query that selects your issues can be defined inside your trigger like this:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.