This article provides scripts which help to assign the synced issue to an existing component.

Source side

Considering that the sending side does not send any component, you don't need to add any script on the Source side.

Destination side  

The receiving side is looking for an existing component and assigns the issue to the lead of this component.

Incoming sync

 def component = issue.project.components.find {c-> c.name == "eITs"}
issue.assignee = component.lead
issue.components += component

 


Another possible way is using getComponent nodeHelper.

def component = nodeHelper.getComponent("eITs", issue.project)
issue.assignee = component.lead
issue.components += component

 


See Also