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?
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
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
Epic B
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.