Hey everyone, I’m struggling with Jira automations. I’ve set up a workflow that does most of what I want, but I’m stuck on the last part.
Here’s what I’ve got working:
- Incoming webhook triggers a JQL query
- Lookup stores the query results
- Selected Jiras get transitioned
- Each Jira gets a comment
The problem is with sending an email. I want to send just one email listing all the changed Jiras from the lookup. But it’s sending an email for every Jira because it’s looping through them for the transition.
I tried making a branch for a single email, but it branched on every loop. I can’t find any actions that do what I need. I even looked into triggering one action from another, but that doesn’t seem possible in Jira.
Any ideas on how to get this working? Thanks in advance for your help!
I’ve faced a similar challenge with Jira automations, and I found a workaround that might help you. Instead of trying to send the email within the same automation rule, consider creating a separate automation that runs on a schedule, say every 15 minutes or hourly.
In this new automation, use a JQL query to find all issues that were transitioned by your original automation within the last time period. Then, use the ‘Send email’ action to compile all these issues into a single email.
This approach decouples the email sending from the individual issue processing, allowing you to aggregate the information. You might need to add a custom field to mark issues as ‘processed’ by your original automation to make this work smoothly.
It’s not a perfect solution, but it’s a reliable way to achieve what you’re after without overcomplicating your existing automation. Just be mindful of the slight delay in email notifications with this method.
hey nate, i’ve run into this too. one trick is to use a custom field to flag the changed jiras. then make a new automation that checks for flagged issues and sends one email with all of them. it runs on a schedule, like every hour. not perfect but works pretty good. hope this helps!