Forums

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

Measure SLA less than 0 in all SLA status

Wanderson Cardoso de Lima February 15, 2022

Hi everyone,

I need to measure all SLA less than 0, to calculate the SLA breached not only when it will be completed, but all status of SLA.
I tried javascript but doesn’t work. I tried like below:

[jira.customfield_rst_break]
name = "RST Break"
data_type = "string"
dimension = true
javascript_code = '''
if (issue.fields.customfield_13227 < "0h 0m")
{
  issue.fields.customfield_rst_break = "YES";
}
else
{
issue.fields.customfield_rst_break = "NO";
}
'''

Every time we had NO in this case.

1 answer

0 votes
Gerda Grantiņa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2022

Hi @Wanderson Cardoso de Lima
Do you have a Jira Service Management project?
In that case, you should be able to use the predefined “SLA state” dimension to filter out issues that are now breached, see more here.
And if you want to know which are still running, you can add the SLA state dimension to the report:Issues_-_Service_Desk_project_-_eazyBI.png

Kind regards,

Gerda // support@eazyBI.com

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events