Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,456,316
Community Members
 
Community Events
176
Community Groups

Mail a list of issues with assignee name

Hello,


I'm looking to send a mail to a distribution list that contains a list of issues from JQL.

Ideally I'd like it to have a URL to each ticket with the assignee name next to it:

JT-1002 is assigned to Joe Bloggs

I'm using this in the body of the mail but it's not putting the assignee's name of each ticket next to it's URL:

{{issues.ToURL}} assigned to {{issue.assignee.displayName}}

 

Please can someone advise?  I realise this may not be possible yet.


Thanks in advance.

Mark

2 answers

1 accepted

1 vote
Answer accepted

Hi @Mark Cartwright

I'd tackle this using the lookup issues action. Input the JQL to get the lists of issues you are trying to send and then in the body of the mail include this; 

{{#lookupIssues}}
<li> <a href="{{url}}">{{key}}</a> assigned to {{assignee.dislayName}}
</li>
{{/}}

Hi @Tom Williams 


Thanks very much for such a prompt reply.  Sadly this hasn't worked for me. 
I should probably have mentioned we're using Jira Server and no Cloud. 

Would this make the difference?

Thank you.

Hi @Mark Cartwright 

Adding on to what Tom suggests, for Jira Server/Data Center automation, the equivalent to Cloud's Lookup Issues is to use a scheduled rule and change the settings to treat the issues as a batch.  Then you can use the {{issues}} (note the plural) the same way as Lookup Issues.

Best regards,
Bill

Like # people like this

Hi @Bill Sheboy 

That's got it working perfectly.  Thank you very much!  

@Tom Williams Thank you too for the original script!

Like # people like this
0 votes

@Mark Cartwright  Have you tried using "Subscriptions" option for JQL?

You can arrange fields which you want to sent to end users as you wish also if you want to sent results to a Distribution list then you can create a Jira User from that DL and subscribe the JQL with that User

Hello @ASHU TYAGI 

Thank you for the suggestion, appreciated!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events