Hey guys,
So I encountered this strange problem. I have a simple automation that runs a JQL on a schedule and if any issues show up, processes them in bulk and emails their assignees with some stuff. The automation is working just fine when the JQL returns issues, but when it doesn't, I get an email that it failed (as per the "Notify on error" setting). The audit log is showing the "Some Errors" status with the following error message:
Apparently, it is still trying to send the emails, even though there are no issues, produced by the JQL. Since the automation is checking for tickets every day, and tickets will be there, say, 30% of the time, I'd be getting these automation failed messages almost every day. Naturally, I can just make it to not send me emails whenever it fails, but this is more of a workaround, rather than a solution.
Has anyone encountered this?
Hi @Damien
I assume this is DC?
I don't have this issue when I tested this (in Cloud or DC) - it just states "No actions performed"
You could try using a Condition, but not sure if it will work...
---
If this doesn't work, you might be able to...
---
Let us know if either of these work!
Ste
Hi @Ste Wright
With the bulk-handling feature of Server / Data Center rules, I believe the smart value is plural: {{issues}}
And so the condition would be on: {{issues.size|0}}
Thanks, and kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Damien,
One way to solve is to create a Condition using JQL right after the scheduled trigger. Use the exact same JQL. I know that is redundant, but now the Condition will fail and the rule will stop processing short of the Send email action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Damien
Do you want to still send an email (perhaps with a different message body) when there are no issues, or send no email message?
If you want to send no email message, try the condition suggested by Stephen and John.
If you want a different message, you could use conditional logic within the email body to show different content for the cases: https://confluence.atlassian.com/automation/jira-smart-values-conditional-logic-1081351607.html
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ste Wright, @John Funk , thank you very much for the speedy responses! I'll try your suggestions on Monday :) Meanwhile, I tested the same automation rule without the "Process all issues produced by this trigger in bulk" and got the "No actions performed", so there we have it, it's this option that "messes it up".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let us know how it goes :)
Ste
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.