You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello Team, I am using the canned automation to send emails with stories are near 3 days from the due date. Works.
I want to modify this to only send emails for stories that are Priority = High or Highest.
Do I modify this and if so how, what variables. Thank you. You are awesome.
duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee = {{distinctAssignee}}
Hello @Cyril James
Whenever asking for help with an Automation Rule, please show us the rule that you have. Often the advice we give depends on the construction of the rule since there are many different ways to accomplish tasks with automation.
If this relates to your other post...
...and you are using the rule template mentioned by Stephen Wrathall, then you will have to change the JQL in the Lookup Issues actions.
I recommend changing both in the same way.
Add the clause
AND Priority in (High, Highest)
You can learn more about constructing JQL queries from the documentation located here.
Thank you @Trudy Claspill
Does this look correct to only send email notifications for Priority = High or Highest.
duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee = {{distinctAssignee}} AND Priority in (High, Highest)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it does look correct.
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.
I wish you could test this. There looks to be an option to test the query but its greyed out for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The curly braces {{}} are used in JQL in automation only when you are inserting into the JQL a variable or a specific issue's field value that is known within the Automation. For the criteria and Priority in (High, Highest) there are no variables or references to values in specific issues so there is no need for curly braces.
The option to test the query is greyed out because of the use of variables.
You could test the filter in the Advanced Issue Search screen by substituting actual values where you have variables; i.e.
duedate <= endOfDay(<actual number>) AND statusCategory != done AND assignee = <actual assignee> AND Priority in (High, Highest)
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.
Thank you, Cyril.
If your question has been answered adequately, please consider marking the Answer as Accepted to help other users find posts with validated answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this to add Priority High and Highest and it is not working exactly as planned.
The automation runs and sends out the emails, yes. Problem, if there are no High priority issues, the email still gets sent and its blank.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After the Lookup Issues action you can add a Condition / Advanced Compare to check that the number of issues returned is greater than zero. This smart value gives you the number of issues returned by the last Lookup action:
{{lookupIssues.size}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cyril,
when you say automation you mean automation for jira right?
if so no need to change your jql just add a condition by field and do priority and choose the ones you want
best,
clark
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.