function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael RotterMichael Rotter 

how to sync the development statuses on jira and sfdc

I'm trying to write an apex program that would automatically update the development status on an SFDC case when the Jira issue status is updated, but am a little lost. I was thinking a trigger could work, but I don't think an apex trigger can be activated from a third party object. Any suggestions/thoughts are greatly appreciated!
Best Answer chosen by Michael Rotter
Raj VakatiRaj Vakati
Hi ,
I am assuming that you have to do a bidirectional Sync
 
Case 1: -If Status  is Updated in SFDC à Sync to JIRA
You can use the JIRA REST or SOAP API to do it . You can call Callouts from trigger
 
Case 2:- If you update status in JIRA ,you need to Sync to SFDC
You can use JIRA http web hooks . https://developer.atlassian.com/jiradev/jira-apis/webhooks
 

All Answers

Raj VakatiRaj Vakati
Hi ,
I am assuming that you have to do a bidirectional Sync
 
Case 1: -If Status  is Updated in SFDC à Sync to JIRA
You can use the JIRA REST or SOAP API to do it . You can call Callouts from trigger
 
Case 2:- If you update status in JIRA ,you need to Sync to SFDC
You can use JIRA http web hooks . https://developer.atlassian.com/jiradev/jira-apis/webhooks
 
This was selected as the best answer
Michael RotterMichael Rotter
Once I register the webhook, should I just set the SFDC status field equal to the Jira issue field?
Michael RotterMichael Rotter
Also, does the webhook work if I'm not using an add-on or connector? In other words, can i code the webhook to do whatever I want it to or are there predefined functions for it?
Harshala Godse 1Harshala Godse 1
I am having same issue, also i created webhook but still no updating status fro Jira to salesforce. 
Did you got any solution?