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

Mail a list of issues with assignee name

Mark Cartwright
Contributor
July 15, 2021

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
Tom Williams
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 Leaders.
July 15, 2021

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>
{{/}}
Mark Cartwright
Contributor
July 15, 2021

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.

Bill Sheboy
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 Leaders.
July 15, 2021

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
Mark Cartwright
Contributor
July 16, 2021

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
Ashu Tyagi
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 Leaders.
July 15, 2021

@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

Mark Cartwright
Contributor
July 16, 2021

Hello @ASHU TYAGI 

Thank you for the suggestion, appreciated!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events