[Saleforce - Jira integration] Sync more than 1 entityType in a single connection

Originally asked by Andrea Mura on 18 February 2022 (original question)


Hi Team,
a question, we are working to a huge Salesforce - Jira integration to sync two Salesforce Custom Objects to a Jira Issue bidirectionally with Exalate. The first one, “JIRA_Ticket__c” is in a Master-Detail relationship with the second, “JIRA_Comment_c”, which is on the detail-side. The Master record will sync to the JIRA ticket, while the detail has a text field that will represent the comment to be entered on said ticket, and each record will be a standalone comment. Is possible to sync these two type of objects in one single connection?

Outgoing script example:if(entity.entityType == “JIRA_Ticket__c”) {
replica.Functional_Area = entity.Functional_Area_Name__c
replica.summary = entity.Name__c
replica.stacktrace = entity.Stack_Trace__c
replica.attachments = entity.attachments
replica.comments = entity.comments}if(entity.entityType == “JIRA_Comment__c”) {
replica.SFcomments = entity.Comment__c
}

In this case the value of the field under “JIRA_Comment_c” entityType is not captured, only the records and fields under “JIRA_Ticket_c” will be passed to payload. Is it a structural limit of Exalate? Is there a solution?

Thanks a lot


Answer by Francis Martens (Exalate) on 04 March 2022

One way to approach is to track the comments in a separate connection, and whenever there is a new SF comment, exalate it towards the Jira. On the incoming side, looking up the ticket can be done with the nodehelper.getLocalIssueFromRemoteUrn function, and then cancel the transition.

It is an advanced use case.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.