Hey community,
I'm trying to make a automation work, but I cannot get it done.
Good to know, we don't have Scriptrunner (or any other "JQL enhancers"). JQL out-of-the-box doesn't seem to provide logic with linkedIssues.
The use case is as follows:
- We have a project where Customer Support forwards customer calls on defects.
- These Cases are resolved in other projects, by linked issues (mostly Bugs, sometimes other types)
- For only Bugs we have SLA's.
- I'm trying to create a daily alert to Slack with a list of the Cases that have breached the SLA.
- So, I want to filter out the reported cases that only have linked Bugs.
The current setup is as follows:
First I create a {{lookupIssues}}

I've tried different things to filter down to only the issues with linked Bugs, but I cannot get it to work. If I create a branch and drill down with if-statements, it (logically) still prints all the lookupIssues.

I've tried to do it with an #if-equals, but I can't seem to create the right smart value for the type of the linked issues:
{{#lookupIssues}}
{{#if(equals(issue.outwardIssue.fields.issue.Type, "10014"))}}
<{{url}} | {{key}} - {{summary}}> reported by {{reporter.displayname}}
{{/}}
{{/}}Hopefully someone with a better understanding can help me with this.