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

**URL:** <https://community.exalate.com/t/saleforce-jira-integration-sync-more-than-1-entitytype-in-a-single-connection/5061>\
**Category:** General Questions\
**Tags:** exalate, migrated\_question\
**Created:** [November 4, 2024, 7:41am UTC](https://community.exalate.com/t/saleforce-jira-integration-sync-more-than-1-entitytype-in-a-single-connection/5061 "2024-11-04T07:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:41am UTC](https://community.exalate.com/t/saleforce-jira-integration-sync-more-than-1-entitytype-in-a-single-connection/5061/1 "2024-11-04T07:41:06Z")

</div>

_Originally asked by Andrea Mura on 18 February 2022 [(original question)](https://oldcommunity.exalate.com/questions/42833019)_

* * *

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

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:41am UTC](https://community.exalate.com/t/saleforce-jira-integration-sync-more-than-1-entitytype-in-a-single-connection/5061/2 "2024-11-04T07:41:07Z")

</div>

_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](https://docs.idalko.com/exalate/display/ED/getLocalIssueFromRemoteUrn) function, and then cancel the transition.

It is an advanced use case.

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [December 4, 2024, 5:54am UTC](https://community.exalate.com/t/saleforce-jira-integration-sync-more-than-1-entitytype-in-a-single-connection/5061/3 "2024-12-04T05:54:36Z")

</div>

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