Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation Smart Value count if True

Solene
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2022

Hi Community,

I have been trying to create an automation without result so I'm asking for help. :)

Expected Rule: when scheduled, looks up issues based on a JQL and sends an email including the count of issues with SLA met.

What I know so far:

  • The lookup issues is correct, I'm using it for other automations.
  • {{#lookupIssues}}{{customfield_10068.completedCycles.breached}}{{/}}
    Does gives me the list of issues with either True (if SLA is breached), or False (if SLA if not breached).

Now I can't figure out how to count them if False. I was hoping for something like this:

{{lookupIssues.customfield_10068.completedCycles.breached.equals("false").size}}

Any advice is welcome!

I'm adding a JSON screenshot in case that helps.Screenshot_breached.png

3 answers

2 votes
Darryl Lee
Community Champion
October 5, 2022

Hi. I would think you want to check whether SLA is breached in the JQL.

1 vote
Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2022

I second this. You won't he able to do this in smart values so in the JQL filter it down to just breached ones and then you can use the count of issues returned by lookup issues.

0 votes
Curt Holley
Community Champion
October 9, 2022

I'll third Darryl's advice. 👌

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events