Add to (don't replace) existing Github labels when syncing from Jira Cloud

Originally asked by Tomer Verona on 29 March 2022 (original question)


Hi,

When syncing from Jira cloud to Github cloud, I’m trying to add to the existing set of Github labels and not replace them completely. Is there any way to do this?

Thanks,

Tomer


Answer by Sim Hua Soon on 30 March 2022

Not sure whether this works, but I think you can use

issue.labels = issue.labels + replica.labels

instead of

issue.labels = replica.labels

https://docs.idalko.com/exalate/display/ED/How+to+synchronize+issue+labels


Answer by Tomer Verona on 01 April 2022

Sim Hua Soon - you’re correct. I’ve accepted your answer. My mapping was not set up correctly: I simply needed to do the above on the Github side as an incoming rule (instead of trying to do this on the Jira side as an outgoing rule). Thanks!


Comments:

Sim Hua Soon commented on 04 April 2022

Hi Tomer,

Glad it was helpful (old community)

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