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:
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
*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!
FYI, I recommend posting stuff like this as a question in the automation area. It appears you have posted in the App Central area where vendors normally post marketing pitches for their apps ;^)
Back to your question...
You are storing the results of Lookup Issues actions in Created Tables, no doubt so you may have several of them to use in the message. But you are not using get() or entries to iterate them as a list: https://community.atlassian.com/t5/Automation-articles/Update-Create-lookup-table-action-improvements/ba-p/2427798
The smart value expression {{mobileOutstandingBugs.size}} seems to be undefined, and {{mobileOutstandingBugs.entries.size}} would be the number of rows in the table, and not the number of issues in the lookup.
Please try this for one of the number of issues in the lookup results:
{{mobileOutstandingBugs.get("mobileOutstandingBugs").size}}
Kind regards,
Bill
I was wondering why this didn't get any responses. I've asked a moderator to move this to the right spot. Thanks, @Bill Sheboy I'll give this a shot and report back!
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.
Awesome; I am glad to learn that helped!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.