# Set label on remote issue when it was deleted locally

**URL:** <https://community.exalate.com/t/set-label-on-remote-issue-when-it-was-deleted-locally/5610>\
**Category:** General Questions\
**Tags:** jira-cloud, github-cloud, migrated\_question\
**Created:** [November 4, 2024, 8:16am UTC](https://community.exalate.com/t/set-label-on-remote-issue-when-it-was-deleted-locally/5610 "2024-11-04T08:16:26Z")\
**Posts on this page:** 2\
**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, 8:16am UTC](https://community.exalate.com/t/set-label-on-remote-issue-when-it-was-deleted-locally/5610/1 "2024-11-04T08:16:26Z")

</div>

_Originally asked by Thorsten on 17 October 2023 [(original question)](https://oldcommunity.exalate.com/questions/95585150)_

* * *

Hi,

I would like to set a label in Jira when an issue is deleted on GitHub. Is there any way to intercept the Exalate status to set this label?

Best regards,

Thorsten

* * *

#### Comments:

> **Javier Pozuelo commented on 24 October 2023**
>
> > It seems that this cannot be done even when using Githhub’s API. If you were to change the status of the issue before it was deleted, for example, you could create a status named “Deleted”, this could trigger a sync and you would be able to create a label on Jira before it’s deleted.

> **Thorsten commented on 24 October 2023**
>
> > Hi Javier Pozuelo ,
> 
> that would at least be a workaround, but it’s not very practical. Is there no way to catch the Exalate status? In Jira it shows me the Exalate status “REMOTE ISSUE REMOVED”.
> 
> I tried this with the following code but it doesn’t work:
> 
> ```auto
> if (remote.replica == "Remote replica does not exist") {issue.labels += nodeHelper.getLabel("Uservoice")}
> 
> ```

---

<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, 8:16am UTC](https://community.exalate.com/t/set-label-on-remote-issue-when-it-was-deleted-locally/5610/2 "2024-11-04T08:16:27Z")

</div>

_Answer by Javier Pozuelo on 07 November 2023_

Hello Thorsten,

Currently, this is a limitation on the product. I have raised a feature request, and I will be attempting to make a workaround for your issue.

* * *
