Zendesk integration only works one way
Asked by Gijsbert:

Hi,

I've configured a Zendesk integration in OpsGenie to do this: "**From an Opsgenie Alert,** create a **Zendesk Ticket** and synchronize both systems to reflect the changes made in any of these systems."

When creating a new alert, a ticket is successfully created in Zendesk, but updates to the ticket in Zendesk are not applied to the alert.

There's this warning in OpsGenie's Integration log when the alert is created: "\[ZendeskV2-Zendesk\] Skipping callback for \[AddInternalDetails\] action on alert with alias \[...\], no matching rule was found.".

What rule is this referring to?

Also (and maybe related), whenever something get's updated in Zendesk and an OpsGenie trigger is activated, this warning appears in the logs: "\[ZendeskV2-Zendesk\] Discarded incomingData, Reason: Missing/Incorrect ticket parameter; Discarding!"

Any idea what I'm missing here?


Answers:
author: Nick H
body: Hi [@Gijsbert](/t5/user/viewprofilepage/user-id/4666064) ,

On the Zendesk side, you will need to configure a *Target* (essentially the Opsgenie integration that will be sent requests when actions are taken on the Zendesk ticket), and some *Triggers* (actions taken on the Zendesk ticket that send to Opsgenie and trigger the Target/integration).

For more information on those, you can review the **Configuration in Zendesk** part of our documentation here: <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-zendesk/#Add-Zendesk-Integration-in-Opsgenie>

Step 9 outlines the configuration for each trigger: <https://github.com/opsgenie/opsgenie-integration/blob/master/zendesk/triggerInstructions.md>

You can most likely skip the Create Action since your workflow is Opsgenie alerts creating Zendesk tickets, but you should consider adding a trigger for the others; Pending Action, Resolved/Closed Action, Add Note Action.

Within the Opsgenie integration, you can configure what will happen to the alert when these triggers/actions are taken on the Zendesk ticket, and how it will map to the Opsgenie alert:

![zdcomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/173136i5D04543D288FED43/image-size/large?v=v2&px=999 "zdcomm1.jpg")

If configured correctly on the Zendesk side, this should work as expected with actions taken on the ZD ticket reflecting on the OG alert:

![zdcomm2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/173137i5778D8583E7FDB03/image-size/large?v=v2&px=999 "zdcomm2.jpg")

Hope that helps! Let us know if you run into any other questions.

comments: author: Gijsbert
body: Thanks for your reply [@Nick H](/t5/user/viewprofilepage/user-id/2540930).

We double checked the Zendesk configuration and found that we had the target configured incorrectly (we used a webhook instead of url target). Our Zendesk is in Dutch, so the names don't match 1-on-1 with the documentation.

But unfortunately, after fixing the target it still doesn't work, when I update a ticket in Zendesk I see this warning in the OpsGenie logs:

![Screenshot 2021-12-10 at 14.29.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/173316i24B88E8F23108A99/image-size/large?v=v2&px=999 "Screenshot 2021-12-10 at 14.29.22.png")


author: Nick H
body: After testing, I believe the language might be the issue. I was able to change my ZD test instances language from English \>\> Dutch, and ran into the same error.

Transitioning the Zendesk ticket to Pending did move the Opsgenie alert to an Ack'd state as expected:

![zdcomm5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/173351iE91FEB946CC88C60/image-size/large?v=v2&px=999 "zdcomm5.jpg")

But transitioning the Zendesk ticket to Closed did not close the Opsgenie alert, and gave me the same response error:

![zdcomm3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/173352iA0240082CD01E70C/image-size/large?v=v2&px=999 "zdcomm3.jpg")

While with a second test, English had no issue:

![zdcomm4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/173353iB9A24621BAB4A231/image-size/large?v=v2&px=999 "zdcomm4.jpg")

So I believe this might be a limitation with the language at this time. I'll have to enter a ticket with engineering.


author: Gijsbert
body: Alright, thanks for confirming that this is an issue. Unfortunately we can't just change the language setting of our ZenDesk instance.


author: Nick H
body: Try reaching out to Opsgenie support: <https://support.atlassian.com/opsgenie/>

They may have another workaround to help with this use case / language barrier.


author: Gijsbert
body: I contacted support and the workaround is quite simple, in the trigger configuration we needed to hardcode the status value to 'Solved' instead of using a variable. Thanks for your help.

> action: close \|\|  
> id: ticket.id \|\|  
> status: Solved \|\|  
> latest_comment : ticket.latest_comment_formatted \|\|  
> tags: ticket.tags \|\|  
> external_id: ticket.external_id


Tags: zendesk