can we integrate the opsgenie with the google workspace with the help of webhooks

Srinivasulu_N
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!
January 23, 2025

i tried to integrate  the google chat with the opsgenie for that in the integration section i had selected webhook as option and given the google chat webhook and turned on the  the integrations. but i dont what the thing done wrong because i am  not seeing any alerts in the google chat  even though i am getting alerts continuosly to the opsgenie.

 

1 answer

1 vote
Allen Barnard
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2025

Hi @Srinivasulu_N

Thanks for contacting Atlassian Support, my name is Allen, I am very glad to be assisting
you today.

It would be best if you raised a support case via https://support.atlassian.com/contact/#/ 
due to the nature of your ticket we would need to login to your Opsgenie to check configs
and logs, the conversation to arrange such access should not be done on public forum as
sensitive information will need to be handled.

Thanks and kind regards,
Allen Barnard

Senior Support Engineer
Atlassian Analytics | Opsgenie | Trello

Srinivasulu_N
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!
January 24, 2025

Hi @Allen Barnard ,

Thank you for your response.

Before proceeding to create a new ticket at the link you provided, I would like to confirm if it’s possible to integrate Opsgenie with Google Chat using webhooks. If this is feasible, could you please share any relevant documentation or references to help with the setup?

Additionally, I’ve encountered the following error in Opsgenie when attempting this integration:
{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"action\" at 'message': Cannot find field.
Invalid JSON payload received. Unknown name \"alert\" at 'message': Cannot find field.
Invalid JSON payload received. Unknown name \"source\" at 'message': Cannot find field.
Invalid JSON payload received. Unknown name \"integrationName\" at 'message': Cannot find field.
Invalid JSON payload received. Unknown name \"integrationId\" at 'message': Cannot find field.
Invalid JSON payload received. Unknown name \"integrationType\" at 'message': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"action\" at 'message': Cannot find field." },
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"alert\" at 'message': Cannot find field." },
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"source\" at 'message': Cannot find field." },
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"integrationName\" at 'message': Cannot find field." },
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"integrationId\" at 'message': Cannot find field." },
{ "field": "message", "description": "Invalid JSON payload received. Unknown name \"integrationType\" at 'message': Cannot find field." }
]
}
]
}
}

When troubleshooting, I noticed Google Chat does not seem to interpret this JSON payload correctly, and I could not find an option to define a custom JSON template in Opsgenie.

Could you kindly clarify if there is a way to resolve this issue or provide guidance on setting up the integration? Any insights would be greatly appreciated.

Thank you for your time and assistance.

Allen Barnard
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 27, 2025

Hi @Srinivasulu_N

It appears you are attempting to post to a Google API endpoint which is configured to accept JSON payloads with match a specific format. 

It is not possible to change the JSON payloads being sent from Opsgenie here is some documentation regarding the structure of these payloads https://support.atlassian.com/opsgenie/docs/opsgenie-edge-connector-alert-action-data/ I did some research and it appears that the API does require the JSONs to match a specific format, unfortunately its not possible to modify the JSON which Opsgenie send. 

Please note that integration with Google chat is not officially supported.

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events