Jira Server Webhook not working to a local(host) endpoint

Matthias Winkler May 20, 2019

I have a webhook/.NET setup that works with Jira Cloud, but not with Jira Server.

The server instance is installed locally (localhost:9999) on my PC and the receiving endpoint is running in Visual Studio on the same PC.

- I can trigger the endpoint from Postman with a POST to localhost:44388 and a payload of a Jira issue.

- I can also trigger the webhook and see the payload on a webhook receiver page online (I tried with webhook.site)

-I can not however get the webhook to trigger my endpoint

I tried to activate the logs but I don't see the target URL, that the webhook triggers, I just see that it triggered. On the other side in Visual Studio it never hits the breakpoint in the receiving function (which it does when using postman).

Could there be any restriction or settings from Jira to not send webhooks locally.

 

The Jira Cloud + Webserver version works.

 

I have no clue where to look for an error anymore.

Help is greatly appreciated.

2 answers

2 votes
griddic December 2, 2020

If your jira is inside a docker container use `host.docker.internal` to access your `localhost` inside the container.

Otherwise I may suggest you to use ip of your computer in local network or forward port to public url (i.e. using ngrok).

0 votes
Gabriel Bouzard September 11, 2019

I am running into this same issue. Did you ever find a solution? 

Suggest an answer

Log in or Sign up to answer