I received the following error message when trying to implement an automation rule that sends an email to the reporter when a task is due within 3 days. How do I correct the error?
It looks like your JQL Search needs to be modified. Right now, part of it says "and assignee =)", so there probably needs to be a value between the '=' and the ')'
Hello @Dietra Winkfield
Adding to this...
Can you show us the actual JQL statement used in the Automation? And please show us the full rule.
In the error message where no value is shown between 'assignee=' and the closing parentheses, that is usually an indication that a smart value has been used in the JQL, and a value can't be obtained for that smart value.
You may have a syntax error in the use of the smart value, or the smart value may be out of context at the point the JQL is used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for responding.
Here is the JQL statement: duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee != empty
The full rule:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this JQL statement instead, making the change I highlighted in bold text:
duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee is not EMPTY
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.
For confirmation of the change can you show us a screen image of the modified JQL used in the Lookup Issues action in the rule?
The error message shows an "=" after "assignee". That should not be there if you modified the JQL as I suggested.
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.
Okay, I see. The Lookup Issues action that is having the problem is the one inside the branch where the JQL includes
assignee = {{distinctAssignee}}
{{distinctAssignee}} has no value
Can you explain to us what you are trying to accomplish with this rule?
It appears that you are first looking for issues that are not done, that also have an Assignee value, and that are due within a specified number of days.
Next it appears that you are trying to set up another action, perhaps for each unique Reporter you found in the first list. Is that correct?
And then for each unique reporter you are trying to do another retrieval of issues. But I don't understand what you are trying to do in this JQL with the {{distinctAssignee}} smart value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to be able to not only send the reporter a list of tasks that are coming due that they are the reporter on. I have another rule set up for the assignee to get notified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dietra,
Based on your answer it sounds like there is no reason to have the AND assignee = {{distinctAssignee}} clause in the JQL in the Lookup Issues action within the branch.
It sounds like instead you need to have AND reporter = {{distinctReporter}} if you want to get the list of just the issues for each reporter to include in the email.
Do you want to give each reporter a list of only the issues reported by them that also have an Assignee value? I ask because that is how the JQL in your first Lookup Issues action is written. If you do want to include only the issues that have an assignee then your JQL within the branch should be
duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee is not EMPTY AND reporter = {{distinctReporter}}
Can you also show us:
1. The details of the trigger. Do you have a JQL statement in the trigger?
2. The details of the Create Variable step.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your suggestions in the first two paragraphs fixed the problem. The automation is now working as I want it to. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.