Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to automate priority to the highest level when the due date is 2 days from now?

Muhammad Irfan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2025

automate rule.png

This is my rule. 

The objective is to check all work items and if the due date is 2 days from now and priority is not the highest, then change the priority to highest.

But I have a problem, in the edit work item fields i could not find priority fields to set it to what i want. There is no create custom field options or smart value. Am i doing something wrong?

1 answer

4 votes
Brita Moorus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2025

Hi, @Muhammad Irfan! 👋

Did you search for the Priority field from the list and it's still not visible?

Is the priority field visible in the "Edit issue" view? You might need to add it for automation to be able to update it.

Checking Company-managed projects

  • Project settings → Work items →  Screens

  • Find the Edit screen for the work item type you're working with

  • Make sure the Priority field is on that screen

Checking Team-managed projects

  • Project settings → Fields

  • Find the work item type you're working with

  • Make sure the Priority field is added

Hope this helps! ✨

Brita Moorus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2025

Another tip regarding your automation rule - your branch currently checks for "All created work items" which applies only to work items that were created by a previous action in this rule.

If you want your rule to check every task in the project, you can set the rule scope or use JQL to execute this change to each work item in the query. Then this should also work:

Screenshot 2025-07-10 at 12.30.35.png

Hope you have a great day! ☀️😊

Like # people like this
Muhammad Irfan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2025

Thank you, searching works! I don't know why I didn't think of searching for it.

After I update the rule, there is a warning prompt saying its not compatible? Do I need to trigger something first? Im not sure what it means. Thank in advance for your help!

automate rule.png

error automate.png

Muhammad Irfan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2025

I tried to change the work schedule as it seems that is causing the warning and it worked but not what i intended as it requires manual intervention. I need the schedule on to checkup everyday on the work item to automate the rule. Any other way I can include the schedule on?

Brita Moorus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2025

That's true, the rule doesn't understand which tasks it should check - you can set the JQL within the trigger.

Option 1:

  • Set the JQL in the trigger to: priority != Highest AND duedate <= endOfDay("+2")
  • Remove both of the Work item fields conditions

Option 2:

  • Add JQL in the trigger to search for the work items in a specific project. For example: project = "NAME"

 

This should resolve your issue 😊 Let me know if you need any more help.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events