Make REST call into SFDC

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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

194 views 4 8
Read article

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