Forums

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

Jira Automation to separate values in an email when using lookupIssues

Bharat Kumar Bondalapati
Contributor
March 10, 2025

Hello,

Could anyone please let me know why the following sends an empty email? I have followed every instructions through other available similar questions but found no solution.

Here is the automation code:

lookupIssues JQL: (Works Fine)
(status != Closed AND status != Resolved) AND (assignee = KM OR "Requested Participant" = KM)

Send Email: This shows "success" in logs but sends an empty email.
Hello,

Here are the open issues for KM:

**Assigned to KM:**
{{#lookupIssues}}
{{#if(equals(issue.assignee, "Kyle Meier"))}}
{{key}}: {{summary}}
{{/}}{{/}}

Regards, Jira Automation

1 answer

0 votes
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.
March 10, 2025

Hi @Bharat Kumar Bondalapati 

Once inside of the iterator {{#lookupIssues}} ... {{/}} do not use the issue prefix as the fields are relative to the lookup.

If instead you are trying to filter the results, that is not possible as data from outside of the lookup is not visible inside the iterator.  Instead try adding that criteria to the JQL for the lookup.

Another option, when only one lookup is used, is to use a dynamic regular expression to filter a text / flattened version of the lookup.  That may be a bit complicated for your scenario.

 

If that does not help, context is important for the community to help.  Please post the following:

  • what type of project is this (e.g., company-managed, team-managed, etc.), 
  • an image of your complete automation rule in a single image for continuity,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events