Originally asked by Thorsten on 17 October 2023 (original question)
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:
if (remote.replica == "Remote replica does not exist") {issue.labels += nodeHelper.getLabel("Uservoice")}