Hello!
I'm setting up a weekly bug alert summary for our scrum teams that surfaces bugs past due SLA. I am splitting the results by platform (mobile, server, web), so my approach is this:
- Lookup Issues for the platform
project in ({{jiraProject}}) AND issuetype = bug AND priority in (critical, high) and component in (Android, iOS) and status not in ("Ready for Production",Done, "Won't Do", Deferred) and "Bug SLA Due Date[Time stamp]" < now() ORDER BY "Bug SLA Due Date[Time stamp]" ASC- Store that {{lookupIssues}} result in a lookup table

- Repeat for each platform
- Then I send a slack message where I want to surface the issues from {{lookupIssues}} and if no issues, instead of surfacing a blank message, surfacing a specific text

*Mobile*
{{#if(equals(mobileOutstandingBugs.size|0,0))}} No critical/high bugs currently exceeding SLA {{/}}
{{#if(mobileOutstandingBugs.size.gt(0))}}
{{#mobileOutstandingBugs.get("mobileOutstandingBugs")}}
• <{{url}}|{{key}}> || *{{priority.name}}* - {{customfield_10612.diff(now).days}} days past SLA - {{status.name}}
{{/}}
{{/}}
However this isn't working when {{lookupIssues}} is empty as it's not including the intended text. Any ideas on what I'm missing? TYIA!
