Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use webhook?

You-Lan Bribach October 3, 2018

I am working on an integration project between JIRA and another application X.

There are many Jira Issues generated by the application X. Jira should update the related application X records. The following is the scenario.

X Ticket 1 generated Jira Issue ABC-123. If the ABC-123 status changes, Ticket 1 will be updated and change its status. There will be many tickets in application X and each of them generates one Jira Issue.

Questions:

1. How many webhooks do I need to register for such project?

2. How can I tell which updates go to which ticket in application X?

3. Are there samples and guides? I have looked into many Jira documents. I am able to register webhooks and that is as far as I can go at this moment.

Please help.

Thank you,

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2018

Hello,

You can find info on how register a webhook here:

https://developer.atlassian.com/server/jira/platform/webhooks/

1. You could create one webhook.

2. You will get a payload from the webhook and you will be able to figure out the action and the issue.

https://developer.atlassian.com/server/jira/platform/webhooks/

You-Lan Bribach October 4, 2018

Where am I supposed to find the webhook payload? Is it in JIRA or is it in application X?

How the payload generated from the webhook?

Regards,

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2018

A webhook is just a program, which fires on an event. It sends to the url you specified a request, which contains a payload inside. There must be your custom service on the other end of the url, which will catch the request of this webhook. That is actually a Rest Call. 

How to find the webhook payload depends on the platform, on which you create your custom service.

You can find info about the payload in the links I provided:

https://developer.atlassian.com/server/jira/platform/webhooks/?_ga=2.15815414.1119120270.1538549461-492126670.1535639244

Go to the Example: callback for an issue-related event part

You-Lan Bribach October 5, 2018

I am able to register a webhook through REST from the Application X to Jira. But what is next for me?

Thank you,

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2018

You need to write an external program, which catches this webhook.

You-Lan Bribach October 8, 2018

What do you mean an external program? The "external" program in Application X?

Are there any scripts, code, and or program be done in JIRA for sending update to ServiceNow?

 

Thank you,

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2018

In Jira your register a webhook. That is all you have to do in Jira. You need to develop an application in ServiceNow to process the request, which is sent from the webhook from Jira.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events