Forums

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

How can I access my own extension's JIRA API using "Send webhook"?

Yiraphic __ Peeters May 28, 2018

I was wondering if it was possible to access my own extension's private JIRA API using "Send webook". I've been trying to send some information to a POST function in my own rest resource but when I run the code Jira Automation throws the following error: Error publishing webhook. Response HTTP status:403.

If I were to guess it has something to do with authentication but I've no idea how I go about authorizing the rest call.

1 answer

1 accepted

1 vote
Answer accepted
Scott Harwood
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.
May 28, 2018

Hi Jeffrey,

Yes you can. You need to generate a basic auth header using a valid username and password. Then place it into the headers section of the send webhook action.

You can generate a basic auth header using something like postman.

 

basicauth.png

 

Then switch to headers and copy the value from there.

copy.png

Hope that helps.

Scott.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events