Forums

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

How can I get the SLA Day

Mar Angelo L_ Tareno
Contributor
September 22, 2024

Is there a smart value to get the SLA, how many days that SLA run?

my SLA Excluded weekend and holidays. I just need the day value from the start of the run and from current day or the SLA meet the condition to stop running.

 

2 answers

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
November 13, 2024

Hi @Mar Angelo L_ Tareno

if you're open to solutions from the Atlassian Marketplace, this would be easy to do using the app that my team and I are working on, JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a long list of so-called smart columns that aren’t natively available, including the start time and finish time of your SLAs.

This is how it looks in action:

sla-start-time-finish-time.gif

As you can see above, you can easily view, sort, and filter by your SLA's start and finish times, and also use them across JXL's advanced features, such as support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting.

Of course, you can also export your data to XSLX (Excel or Google Sheets) or CSV in just two clicks.

This all just works - there's no scripting or automation whatsoever required.

Any questions just let me know,

Best,

Hannes

0 votes
Ashok Shembde
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.
September 23, 2024

Hi @Mar Angelo L_ Tareno

You can use this Smart Values for SLA:

  • ${issue.sla.fieldName.started}
  • ${issue.sla.fieldName.completed} (or ${issue.sla.fieldName.ongoing} if the SLA is still running)
Mar Angelo L_ Tareno
Contributor
September 23, 2024

it doesn't work.

the fieldname it should be SLA name?

Ashok Shembde
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.
September 23, 2024

You can set up a Jira Automation rule 

Ashok Shembde
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.
September 23, 2024

If you're building an automation rule, you could log the SLA time like this:

  • Trigger: SLA status updates
  • Condition: Check if the SLA is still running or completed using {{issue.sla.fieldId.completed}}
  • Action: Use {{issue.sla.fieldId.elapsedTime.convertToDays}} to log or send the number of days the SLA has been running
Mar Angelo L_ Tareno
Contributor
September 23, 2024

I did it on Automation and the result give is this

 

sss.png

I changed ng fieldName to my SLA name Time of result

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events