Hi there,
I am trying to group records by distinct assignee and collect all defects per assignee in one email. These are my steps in automation rule (Scheduled)
1. I started with lookup issues and placed my query: issuetype = bug and priority= Medium and 'Groomed Date' >=startOfDay(-5d) and 'Groomed Date' <startOfDay(-2d). Output returns 5 issues
2. then created variable distinctAssignee with value: {{lookupIssues.assignee.distinct}}
3. Added lookup issues after it to run group with disstinctAssignee: issuetype = bug and priority= Medium and 'Groomed Date' >=startOfDay(-5d) and 'Groomed Date' <startOfDay(-2d) and assignee = "{{distinctAssignee}}"
4. In the email body I added text:
{{#lookupIssues}}
<a>{{key}}</a>
{{/}}
I tried {{distinctAssignee}} in TO field in my email, and the logic places all distinct assignees in TO field and send 5 emails with 1 issue in it. There was no group by assignee done.
How should I organize this logic to get 1 email per assignee all related records to the assignee?
Hello @Anna
Are you in data center? If so, unfortunately its not natively possible. Because there is no "Advanced Branching" in data center edition. Please vote here: https://jira.atlassian.com/browse/JIRAAUTOSERVER-749
There is one convoluted way to achieve this but I dont think its needed.
This suggestion by @Bill Sheboy is a good alternative till Advanced branching is implemented. Its simple and follows KISS principles.
Steps:
project = yourProjectName
AND sprint IN openSprints()
AND assignee = currentUser()
ORDER BY Rank ASC
Hi Kalyan,
Thanks for your reply. we use Jira Data Centre and I know it it is possible on Cloud platform. I will try to follow the steps you suggested from Bill's post.
I voted for the issue to be included in Data Centre!
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.