Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Details Field not showing on Opsgenie Events

Julian Sarrelli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2024

Hi everyone,

 

We have an integration with Opsgenie by using the Java Opsgenie client 

 

"com.opsgenie.integration" % "sdk"                   % "2.11.2"

In which we create and close events. In these requests, we are sending data in the details field. 
We've detected that these details sometimes display data and sometimes don't, although we always send the same data.  (See Extra Properties)image (1).pngimage.png

 

Screenshot 2024-02-14 at 16.05.40.png

2 answers

1 accepted

0 votes
Answer accepted
Alan Violada
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2024

Hey Julian, Alan from the Opsgenie Support team here.

In order to display that information on the alert, you are going to want to make sure that in the integration settings, you have mapped a field in the alert details to show the {{extraProperties}} value: 

https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/ 

image.png 

Also worth noting, we recently identified and fixed a bug where the extra properties were being displayed on alerts even if they had not been configured in the integration:

https://jira.atlassian.com/browse/OPSGENIE-1867 

This could explain why you were seeing it intermittently, even without changing any settings - Now that this is fixed, however, this does need to be configured in the integration.

 

Cheers,

Alan

0 votes
Julian Sarrelli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2024

Alan, somewhere along the 12th of February something changed and it stopped displaying the detail fields

This is how we are calling the endpoint using the SDK. 

log.fields("details" -> detailsField.mkString(", ")).info(s"Sending opsgenie ${notificationConfig.action}")
val alertRequest = (new CreateAlertRequest)
.message(event.title)
.description(event.summary)
.source(event.source)
.priority(ogPriority(event.severity))
.details((event.details + ("View in Blue Matador" -> event.href)).asJava)
.alias(event.incidentId.toString)

client.alertV2.createAlert(alertRequest)

In the details parameter, we are sending a map of <String,String>

 

In this example I see the request is being sent with a bunch of fields but nothing comes up on the Opsgenie UI

Screenshot 2024-02-16 at 10.05.02.png

Screenshot 2024-02-16 at 10.05.18.png

 

And here I have a similar event, with the same payload,  on February 11th

Screenshot 2024-02-16 at 10.07.42.png

Alan Violada
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 16, 2024

Hey Julian,

That matches what I mentioned - Since the fix release on Feb 12, you now need to manually configure the "extraProperties" value to be displayed in the alert via the integration settings.

So while the payload you are sending might have all the info, you are likely missing the part of configuring it on the integrations "Create Alert" rule.

If you run into issues configuring that, I would recommend creating a support ticket at Atlassian Support so we can provide more detailed assistance.

 

Cheers,

Alan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events