Create a "Time Worked" field that uses SLA start time on Incident Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 10:40 AM
What would be the best way to create a new field called "Time Worked" that calculates how long a ticket has been opened from the SLA Start Time? We were looking for a way to make this easily visible vs having to scroll down and click on the SLA tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 04:34 AM
Hello @bharris,
- Go to your ticketing system's administration/configuration settings.
- Create a new field named "Time Worked" or something similar.
- Set the field type to "Formula" or a similar option that allows for calculations.
- The formula will calculate the difference between the current date/time and the SLA Start Time.
- The specific formula will depend on your ticketing system's capabilities, but it will likely involve subtracting the
SLA Start Time
from thecurrent_time
function. - If you need to display the time in a specific format (e.g., days, hours, minutes), you'll need to add formatting to the formula.
- For example, if the SLA Start Time is in a field named "sla_start_time", you might have a formula like this (note this is an example and may need adjustments for your system):
current_time - sla_start_time
- If you need to display the time in a more user-friendly format, you might use functions within your system to format the result.
- Make sure the "Time Worked" field is displayed on the ticket form where it's easily visible, such as in a prominent section or at the top of the form.
- Consider displaying it as a "read-only" field to prevent users from manually editing the time worked value.
- A field called "SLA Start Time"
- A function to calculate the current date and time (let's call it
current_time()
) - A way to format time differences (let's call it
format_time()
)
format_time(current_time() - sla_start_time)
If this is helpful, please hit the thumbs up button and accept the correct solution by referring to this solution in future it will be helpful to them.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2025 01:56 PM
How would this be done in ServiceNow? Do you know what the field name is for the SLA Start time?