2
1
0

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

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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.

        CommentAdd your comment...