Make REST call into SFDC

Juno Guy I'm New Here Nov 14, 2017

Apologies up front for what seems like a basic question....

I have what seems like a pretty generic need but having a very minimal developer background I am struggling to understand (but willing to take a shot) where in my instance of JIRA Cloud do I start?  I don't want to use a 3rd party connector for this as it seems to be an overkill and costly for what seems like a "basic" thing.  

I want to sync over from our instance of JIRA Cloud to SFDC via REST the value of 1 field in each issue/ticket into a specific custom object within our prod SFDC.  The trigger from JIRA to SFDC should be based upon the JIRA status field once it has been changed to "Close".    

I can make REST calls into JIRA not problem but not sure how to get our instance to POST a value based on a condition into SFDC.    

Does anyone have a pointer and sample?

 

1 answer

1 accepted

1 votes
Alexey Matveev Community Champion Nov 14, 2017

Hello,

I guess you need to use Webhooks. Webhooks are user-defined HTTP POST callbacks. You can define events in Jira on which a webhook will be triggered. You can add a post function, which will trigger a webhook, to a transition if you need the webhook to be triggered on a specific transition. In the webhook you can pass parameters to the external receiver. If these parameters are not enough, you could pass an issue id and the external receiver would make a call to Jira to get all the required parameters for the issue.

You can read more about webhooks here

https://confluence.atlassian.com/adminjiraserver073/managing-webhooks-867028229.html

and here

https://developer.atlassian.com/jiradev/jira-apis/webhooks

And if you wonder what your external receiver is: This is some REST endpoint you would have to create yourself which does your POST into SFDC.

I'd recommend using sth like AWS Lambda for this. There you don't have to maintain a server, you simply can enter your code and make it accessible via a REST endpoint (API Gateway).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,026 views 12 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot