Forums

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

How to create Remote Object Link using REST API?

Darshan Chhajed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2019

Hi Everyone,

 

I have created a Remote Object Link custom field and linked it to Salesforce Opportunity. 

I want to create & update this field using JIRA REST APIs. How can I do this?

 

Thanks in advance.

1 answer

0 votes
SR Showcase Shared June 26, 2019

Hi Darshan,

If you're referring to the Remote Object Link custom field provided by the Salesforce & Jira Connector app by ServiceRocket (reference: https://docs.servicerocket.com/salesforce-jira-classic/user-guide/jira-functionality/linking-a-jira-issue-to-a-salesforce-object/adding-a-remote-object-link), you could simply use a PUT Method Jira REST API call to write on this custom field and the input you'll need to pass is the Salesforce Opportunity object ID you want to link to your Jira issue (reference: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#editing-an-issue-examples), so, for example you could make a REST API to the target Jira issue using the PUT method and enter this sample data which will update the Remote Object Link custom field:

{

"fields": { "customfield_123456": '5001R00000jWoq7'}

}

Where you'll need to replace the input with your custom field ID and the Salesforce Opportunity ID.

 

Best regards,

Juan

Suggest an answer

Log in or Sign up to answer