Llyr Posted July 1, 2024 Posted July 1, 2024 Hi, We have starter using OpsGenie and i have a question about how to format the return of the Acknowledge date and Time. When a ticket is raised in OpsGenie, we have a Hornbill check to see if its been acknowledged, we can get the information but the date and time comes back as just a number, does anyone have an idea how we can get this to be displayed properly as a time and date?
Steve Giller Posted July 1, 2024 Posted July 1, 2024 According to the Googles: Quote The reporting fields of an alert (ackTime, closeTime, etc.) are relative and is measured in milliseconds since the alert was created. so you're probably going to have to use Automations to trim that down to Seconds and add it to the Timestamp of when OpsGenie created the issue.
Steve G Posted July 1, 2024 Posted July 1, 2024 Hi @Llyr, The alert acknowledge time and close time values are actually the number of milliseconds that have passed since the alert was created, as per this question on the Atlassian community and the alert API docs. It would be useful to have actual datetime values returned as well though, rather than having to add further processing into your workflows to calculate that information. I'll get a couple of additional output params added to that operation to contain the datetime strings in ISO 8601 format, leave it with us. Cheers, Steve 1
Steve G Posted July 1, 2024 Posted July 1, 2024 Hi @Llyr, That's done and has been released to live, so you should see these new output params on your instance in the next 10 mins or so: Cheers, Steve 1
Llyr Posted July 1, 2024 Author Posted July 1, 2024 That's amazing thanks for actioning so quickly. If i then put the output in [] with that give me the users data format?
Steve G Posted July 1, 2024 Posted July 1, 2024 7 minutes ago, Llyr said: That's amazing thanks for actioning so quickly. If i then put the output in [] with that give me the users data format? It will indeed Cheers, Steve
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now