Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi!
We have a number of custom fields tracking different timestamps of an incident's life. For example - Incident Started Timestamp is one of the fields. One of the uses is to calculate the incident duration, but since the default timestamp format of Jira is MMM dd, yyyy HH:mm, we cannot track incidents that occur only for a few seconds.
I'm planning to adjust the format to MMM dd, yyyy HH:mm:ss to allow us to track seconds as well, but my question is -
How would this affect all the values in existing tickets which don't have the seconds. Would it append :00 at the end of all values or would the values become invalid? (We have thousands of tickets already in Jira and I don't want to mess up any existing data.)
Thank you, in advance! 😄
(Apologies for the long rambling, but I thought it best to provide the background.)
Hi @Shahroz Naeem ,
Try using Automation For Jira to calculate the difference in the fields. You would need another custom field to hold the value - also a date/timestamp type of field. Something like Incident Duration. Then to calculate the value when less than a day, use something like:
{{[date1].diff([date2]).[unit]}} where the unit is seconds or minutes
So, {{issue.incident started.diff(issue.incident ended).seconds}}
Or you can use the custom field id like this:
{{issue.customfield_10015.diff(issue.customfield_10016).minutes}}
Hi @John Funk
Thanks for the response! I already know that part. What I'm worried about is if changing the global date format would simply append the extra data to existing value or if something else might happen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry - did not read your question all of the way through before. Yes, it would just append :00 to the end of existing issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.