Issue with Customized Jira Template for Meraki Webhook Integration

semsem2050
Here to help

Issue with Customized Jira Template for Meraki Webhook Integration

Hello everyone,

I attempted to use a customized template as detailed in this repository, but it did not work as expected. Has anyone successfully implemented this integration manually or using API? Any guidance or examples would be greatly appreciated.

Thanks in advance!

2 Replies 2
RicardoD
Meraki Employee
Meraki Employee

What's the error you're getting? Can you describe your testing scenario?

semsem2050
Here to help

Thank you, @RicardoD, and very sorry for the late reply. I was on vacation.

I used Ansible to automate adding the Jira template and the webhook receiver. When I contacted Cisco Meraki support, they mentioned the error might be due to the endpoint. Here's the issue:

I can't add the webhook receiver using Ansible or manually, and the dashboard doesn't show the error. I tested the API endpoint using CURL, and it worked perfectly, creating the ticket in Jira successfully. However, when deploying the webhook receiver with Ansible, I got the following error:

```
TASK [webhooks_receiver : Create/Update webhooks receiver] *********************
task path: /builds/root/test-env/Ansible/roles/webhooks_receiver/tasks/main.yml:3
The full traceback is:
Traceback (most recent call last):
File "/root/.ansible/collections/ansible_collections/cisco/meraki/plugins/plugin_utils/meraki.py", line 306, in exec_meraki
response = func(**params)
File "/usr/local/lib/python3.10/dist-packages/meraki/api/networks.py", line 2571, in createNetworkWebhooksHttpServer
return self._session.post(metadata, resource, payload)
File "/usr/local/lib/python3.10/dist-packages/meraki/rest_session.py", line 478, in post
response = self.request(metadata, 'POST', url, json=json)
File "/usr/local/lib/python3.10/dist-packages/meraki/rest_session.py", line 253, in request
raise APIError(metadata, response)
meraki.exceptions.APIError: networks, createNetworkWebhooksHttpServer - 500 Internal Server Error, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm
fatal: [localhost]: FAILED! => {
"changed": false,
"msg": "An error occurred when executing operation. The error was: networks, createNetworkWebhooksHttpServer - 500 Internal Server Error, <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtm"
}
```

This is the API endpoint I used with CURL that worked well:
```
https://cesman.atlassian.net/rest/api/3/issue

{
  "Authorization": "Basic <the shared secret>"
}



```

Thank you!

Get notified when there are additional replies to this discussion.