Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where to write URL and payload in order to execute POST REST API on 3rd party application

djsm I'm New Here Dec 03, 2021

HI,

I'm new in Jira.

Would like to get advice on how to write URL with Payload in Jira to enable Jira to be able to execute POST REST API to another 3rd party application?

I'm successfully executed the following script on postman:

-------------------------------------------------------------------------------

URL: http://3rdPartyServer/api/odata/businessobject/incidents

Authorization: rest_api_key=CDD40D2DSDSB71WA5FC6341233ES6EDF7
Content-Type: application/json
{
"Service" : "CRM Service",
"Category" : "Functionality",
"ProfileFullName" : "Admin",
"Status" :"Active",
"Subject" : "test subject",
"Details" : "test details test details",
"Urgency" : "High",
"Impact" : "High",
}

-------------------------------------------------------------------------------

My requirement is when status in Jira is changed to another status, Jira will automatically generate ticket to my 3rd party application.

And the 2nd question is how to trigger this status changes that will automatically trigger that POST?

Thanks for any feedback

1 answer

Hi @djsm welcome on the community :)

I'm not sure what version of Jira Server you use, but I guess you can use webhooks (https://developer.atlassian.com/server/jira/platform/webhooks/). You can configure it to add a webhook as a postfunction so you can invoke it during issue transition - https://developer.atlassian.com/server/jira/platform/webhooks/#adding-a-webhook-as-a-post-function-to-a-workflow.

Hi Martin,

Thanks for the info, I read the docs you provided, and I already registered a Webhooks and also already configured the trigger when status changed.

But one thing I couldn't find is where to put the following info of REST API?

Authorization: rest_api_key=CDD40D2DSDSB71WA5FC6341233ES6EDF7
Content-Type: application/json
{
"Service" : "CRM Service",
"Category" : "Functionality",
"ProfileFullName" : "Admin",
"Status" :"Active",
"Subject" : "test subject",
"Details" : "test details test details",
"Urgency" : "High",
"Impact" : "High",
}

 

Could you advise please. thank you

fyi I use Jira v8.20.2

Hi @djsm , I'm very sorry, I didn'tread proparl. Webhooks does not allow an authentication call.

There can be a workaround. Do you have for example ScriptRunner App installed?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

399 views 19 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you