Hello all,
I have an SLA that is calculated based on the following:
e.g. A Jira issues is created at 11am. The SLA for this issue will start from 9 am the next day
e.g. A jira issue is created at 7:20 am. The SLA will start from 9 am.
How can I calculate the remaining time within a day (give that a day starts and ends at 9 am) ?
Ultimately I am trying to add the remaining time within a day and add the SLA duration (2days) to provide a total duration.
Using Automation to do the above.
Hope this is clear. Any suggestions are greatly appreciated.
Hi @Sean Wood
I believe if you sketch out your algorithm, you can do this with the built-in date/time functions. Perhaps something like this:
{{now.diff(issue.created.toStartOfDay.plusDays(2).plusHours(9))}}
{{now.diff(issue.created.toStartOfDay.plusDays(3).plusHours(9))}}
Here is the documentation for date/time smart values to get you started: https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/
Please note: your approach seems to give people a "free pass" for issues created after 0900 up to the next day. You may want to consider why SLA doesn't start until the next day.
Kind regards,
Bill
Hi @Sean Wood
Also, you can try the application SLA Time and Report for Jira (created by my team). At its configurations, all date fields have the option "Based on field value". This means that the SLA starts at the date and time specified in the selected issue field.
Accordingly, if you make that the automation always correctly updates the conditional field SLA start, or you will set it manually, then under this condition the SLA will start as you need and count for 48 hours.
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.