Background:
I have used a successful automation for over a year that looks up the tickets completed in the last week, and emails:
- a list of the completed tickets, matching the condition of specific epic link
This is the successful automation's content:
- LOOKUP ISSUES operation - JQL is:
- project = "PROJECT NAME" AND status changed TO "Done" AFTER -7d
- EMAIL - content:
<strong>Back Office Functionality</strong>
{{#lookupIssues}}
{{#if(equals(epic Link.key, "SMGPORTAL-2226"))}}
<li><a href=https://cylogy.jira.com/servicedesk/customer/portal/8/{{key}}>{{key}}</a> | {{summary}} ({{website}})</li>
{{/}}
{{/}}
- This repeats for 5 different epic links
The email looks like:
Title
(repeated for 5 different epic links)
My problem:
I need to organize this list based on the component now, not the epic link. I can not find a smart value for the component that works. I have tried all the below. I have read all the documentation and searched other community posts. All my tests return no results.
My request:
- Please advise what should replace epic Link.key for component name?
- Or is there a different syntax to achieve my outcome?
I am looking for the same email outcome as above, but it will be based on the component instead of epic link.
What I've tried, with no success:
{{#lookupIssues}}
{{#if(contains(issue.components.name, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(issue.component.name, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(components.name, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(components, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(issue.component, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(issue.components, "Back Office Functionality"))}}
{{#lookupIssues}}
{{#if(contains(ComponentName, "Back Office Functionality"))}}