Forums

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

jira - automation email embedded JQL results

Gavin
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 28, 2021

I have a project automation that sends out an email.  I want to include the result of this JQL in the body of the email.  Is there a way to do that?  (Without using filter subscription since I want to format it in a specific manner)

project = MKV AND labels = request AND status != closed

The results of this is 4.  How do I take the result of this and embedded into an email?

email

Ex.  Hello you have 4 issues needing attention.

 

3 answers

1 accepted

0 votes
Answer accepted
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 29, 2021

Hi @Gavin 

For Jira Server/Data Center, the equivalent to Lookup Issues for batch processing is to use a scheduled rule with JQL and the "...process issues in bulk" option.  Then you may use the {{issues}} smart value.

Please look here for more information on that approach:

https://confluence.atlassian.com/automation/bulk-handling-of-issues-993924653.html

Best regards,
Bill

0 votes
Boris Berenberg - Atlas Authority
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 29, 2021

Hello Gavin,

 

We support this using the ${issuecount} Placeholder in Notification Assistant for Jira

0 votes
KAGITHALA BABU ANVESH
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 28, 2021

Hello @Gavin ,

 

Please add a new action: Lookup issues

image.png

 

I tried the above, but was unable to display all the issues in Email,

I'm only able to show the number of issues only.

Gavin
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 28, 2021

Hmm is this for jira cloud? I think I might have a on prem jira.

KAGITHALA BABU ANVESH
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 29, 2021

for on-premise, I didn't found the smart values in Automation.

Suggest an answer

Log in or Sign up to answer