Jira smart list conditional statement for generating issue lists by epic link

jalewis June 19, 2023

Hi forum... I'm attempting to create an automation email based on a JQL filter for Epics and Tasks in certain statuses. The JQL query works and produces results.

My next step is to create a smart list conditional statement that uses the customfield value for the Epic Link to filter and generate a list of tasks associated to that epic.

{{#if(issue.fields.customfield_10701.value.equals("DX-452"))}}
{{#lookupIssues}}
* <a href={{url}}>{{key}}</a>: {{fields.customfield_10700}}: {{fields.customfield_10701}}
{{/}}
{{/}}

 In my example above, I want to list all issues linked to Epic Link = "DX-452". What do I seem to be missing?

1 answer

1 vote
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.
June 19, 2023

Hi @jalewis 

Although it may be possible to do this with smart value, list filtering, I recommend instead using JQL for your Lookup Issues action which specifically finds those issues.  Without seeing your entire rule, It is unclear to me how well this matches your scenario.

The expression you are showing is conditional only on the "current" issue, and does not perform filtering for the list, as described here: https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588

Kind regards,
Bill

jalewis June 19, 2023

Hi Bill, let me clarify. I created a JQL with the issues I want to include in the email.

I would like to filter them by Epic.

Epic A

  • Issue 1
  • Issue 2

Epic B

  • Issue 1

Similar to how you would filter a list of issues by status in an email. I have to use a customfield, but my filter does not work.

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.
June 19, 2023

Thanks for clarifying. 

If you know the list of specific epics, I believe you may filter by their keys with epic link, one by one in the lookup issues results, using the smart value, list filtering.

But if the epics are unknown/dynamic, that is probably not possible with one email.  Specifically, branches and list iterators/filters would not support that due to parallel processing and scoping, respectively.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events