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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.