Jump to content

Recommended Posts

Posted

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?

image.thumb.png.72ced07bdc8c450313c3acc305c37cf7.png

Posted

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.

Posted

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

  • Like 1
Posted

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:

image.png 

Cheers,
Steve

  • Like 1
Posted

That's amazing thanks for actioning so quickly.

If i then put the output in [] with that give me the users data format?

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...