Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Grouping in automation's letters



Can anyone help me in this content structure:


So, I found necessary issues in my project and trying to send them to my team.

But, I can't group them by assignee.displayName. 

How to change a content field to see a list of issues grouping by assignee? It's enough to see only Key and Summary under assignee's Name.


2 answers

0 votes
Mark Segall Community Leader Aug 24, 2022

Hi @Кирилл Матвейко 

This one is tricky.  Grouping by assignee would get complex.  You would need to leverage a mix of advanced branching and variables to capture the data then split out the results of the variable into your message.

Instead, I would recommend simply setting your lookup Issues query to order by assignee.

Hi, Mark!

John suggested me the same way - I answered him. 

Read it please.

Hi @Кирилл Матвейко 

Yes, Mark and John's answers...

Are you trying to send one email for all assignees (with groupings) or multiple emails (e.g. for each possible assignee)?  For each approach, there are limitations.

One email: You need to know all possible assignees in advance, and using their user accountId values, use smart value, list filtering to create groupings by user.  Unfortunately, I do not believe you can do this dynamically (with variables) as any branch over the assignees may finish processing after the email is sent.

Multiple emails: Use an advanced branch to iterate over the {{lookupIssues.assignee.distinct}} list and send an email for each.

Kind regards,

Like Mark Segall likes this
0 votes
John Funk Community Leader Aug 24, 2022

Hi @Кирилл Матвейко 

Hmm, that is a good question - I have not tried that before. 

How is the rule triggered? Maybe add a condition with a JQL and add  ORDER BY Assignee at the end of the JQL. I don't know if that will work, but worth a shot. 

Hi, John!

Now, this rule triggered manually, because I just test him.

I already used ORDER BY in JQL, it works great. But, needs to divide a list, not only order it.

Generally, I think to decompile an ussues by some features.But I don't know how to use conditions in Content field and is it possible at all.

John Funk Community Leader Aug 25, 2022

Well, if you order by it, then that achieves the grouping more or less because all of the issues will be in order by assignee. I am curious as to how that does not meet your need. 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events