We are trying to sync Epics from Jira DC to Jira Cloud. Following the documentation, we attempted to add the following snippet to the Jira Cloud incoming script:
Epic.send() - Jira DC outgoing script
Epic.receive() - Jira cloud incoming script
After adding this snippet, the script cannot be saved in Jira Cloud.
You’re on the right track with using Epic.send() in your Jira DC outgoing script and Epic.receive() in your Jira Cloud incoming script. However, the error you’re seeing when saving the script in Jira Cloud is likely due to a syntax or compatibility issue.
According to the official documentation for syncing epics in Jira Cloud, you should add Epic.receive() at the end of your incoming sync script, and this is only supported in Script mode (not Visual mode). The snippet should look like this:
// should be at the end of the incoming sync script
Epic.receive()
If you’re getting a “startup failed” error mentioning an unexpected input, double-check the following:
Make sure you’re editing the sync rules in Script mode, not Visual mode.
Ensure there are no typos or extra characters in your script.
Epic.receive() must be placed at the end of the incoming sync script.
You can find the official guidance here:
If you continue to see the error, try removing other custom code temporarily to isolate the issue, and ensure your Jira Cloud project is company-managed, as Epic syncing is only supported there.
Let me know if this helps you resolve the script saving issue!