The error you’re seeing—One or more labels in ‘hubIssue.getLabels’ is not of type IHubLabel but java.lang.String—typically happens when the labels being assigned in your sync rules are plain strings, but Exalate expects them to be label objects (IHubLabel) on the GitHub side.
To sync the Jira Component field to GitHub PR labels, you need to ensure that when you assign labels in your sync script, you use the correct label object format. You can do this using the nodeHelper.getLabel() method, which creates a label object from a string.
Here’s how you can adjust your sync rules:
On the Jira Outgoing sync:
Map the Jira Component(s) to the replica, for example:
replica.components = issue.components
On the GitHub Incoming sync:
Convert the component names to label objects: