Unexalate if Jira item is moved to another project

Hello,

We use exalate to copy from one project to another project within the same instance. but only between 2 specific projects. Occasionally we have users move an Exalated issue to another project and Exalate throws errors.

I’ve tried to train my staff to Unexalate before moving but it isn’t working. Is there any way to trigger an unexalate and potentially a delete if someone moves an issue?

You can automate the process of unexalating (disconnecting) issues when they’re moved to another project in Jira, so you don’t have to rely on users to do it manually. Exalate provides a way to stop the sync automatically if an issue is moved out of your designated projects.

For Jira Cloud, you can add a check in your Incoming Sync script to detect if the issue has been moved out of your target project (replace "HELP" with your actual project key). If so, the script will trigger an unexalate:

Source side (Incoming sync):

if (issue.project.key != "HELP") {
    // stop sync if the local issue has been moved from the HELP project     
    if (!firstSync) {
        syncHelper.unExalateAfterProcessing()
    }
    return
}
// the rest of your script goes here

Destination side (Incoming sync):

if (replica.project.key != "HELP") {
    // stop sync if the remote issue has been moved from the HELP project
    if (!firstSync) {
        syncHelper.unExalateAfterProcessing()
    }
    return
}
// the rest of your script goes here

This will automatically disconnect the issue from all Exalate connections if it’s moved out of the specified project, preventing further sync errors.

You can find the full details and more options (including how to just pause sync instead of disconnecting) in the official documentation:

This approach should help keep your syncs clean and error-free, even if users forget to unexalate before moving issues.

HI @dkbt

Jillani here and thank you for creating a post on our Community Portal.

I can see that AIDA has responded on your question. Please check and let me know if it was helpful or if you have any follow up questions.

BR,

Jillani