Forums

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

How can I use Advanced Branching in Automation for unique results?

Brock Jolet
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 Champions.
January 12, 2022

I created an automation a while back that sends emails daily to the assignee of any issue that is overdue. This resulted in numerous individual emails for some users and I was asked to instead send out bulk emails.

Here is my basic workflow:

  • When the rule is triggered, run a JQL query to find all issues that are in an active status.
  • I then pass the results through an IF statement checking for issues that have assignees and are currently overdue.
  • Within the IF, I added an Advanced Branch that does an action for each assignee from the issues that passed. (This is where I need help.)
  • I use the variable {{currentAssignee}} from the Advanced Branch to run a JQL lookup that returns only the issues assigned to that user.
  • Finally, I trigger an email with those results in bulk.

It almost works. The problem I run into is Automation doesn't filter the assignees for unique users. So if a user has five overdue issues, they will receive five identical emails with all of the issues listed.

I've searched and come up empty-handed trying to find a way to filter the list of assignees for unique ids. Any help is appreciated.

Screenshot below:

2022-01-12_11h53_08.png

2 answers

1 accepted

5 votes
Answer accepted
Peter Bengov
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 Champions.
December 8, 2014

We have this setting working for us. You shouldn't be afraid to add relevant users to Browse Projects permission. We have added all relevant users to this setting (reporter, watchers, assignee, etc.). This should make relevant users see only the tickets which they are part of. Otherwise - they won't be able see their issues too.

Make sure they have also the Edit Issues & Add Comments, if needed.

Stephen Gurnick
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 Champions.
December 8, 2014

Thank you for this. I now see that there are more granular options (e.g. specifically selecting the reporter).

jirajester
August 25, 2017

AWESOME!!!!!!!! Thank you, exactly what i needed!

2 votes
Nic Brough -Adaptavist-
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 Champions.
December 8, 2014

Actually, I think you want this: https://confluence.atlassian.com/display/JIRA/Current+Reporter+Browse+Project+Permission

If you just put "browse = reporter" into the permission scheme, it makes ALL issues in the project available to all the users who have create issue.

Stephen Gurnick
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 Champions.
December 8, 2014

Thank you, Nic. This is what I ended-up doing. Peter pointed me in the right direction, and you confirmed. Thanks a bunch!

Suggest an answer

Log in or Sign up to answer