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

**URL:** <https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142>\
**Category:** General Questions\
**Tags:** exalate, cloud-jira, github, migrated\_question\
**Created:** [November 4, 2024, 7:45am UTC](https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142 "2024-11-04T07:45:54Z")\
**Posts on this page:** 4\
**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:45am UTC](https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142/1 "2024-11-04T07:45:54Z")

</div>

_Originally asked by Tomer Verona on 29 March 2022 [(original question)](https://oldcommunity.exalate.com/questions/42835818)_

* * *

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

* * *

---

<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:45am UTC](https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142/2 "2024-11-04T07:45:55Z")

</div>

_Answer by Sim Hua Soon on 30 March 2022_

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

```auto
issue.labels = issue.labels + replica.labels

```

instead of

```auto
issue.labels = replica.labels

```

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

* * *

---

<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:45am UTC](https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142/3 "2024-11-04T07:45:56Z")

</div>

_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)_

---

<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 6, 2024, 7:46am UTC](https://community.exalate.com/t/add-to-dont-replace-existing-github-labels-when-syncing-from-jira-cloud/5142/4 "2024-11-06T07:46:21Z")

</div>

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