Error in importing automation rules from Jira Server/Data Center to Jira Cloud

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Importing the rules JSON file from the Server/Data Center to Jira Cloud fails with this error message:

1 2 3 4 Error parsing provided JSON. Please ensure it was created using 'Export rules' previously. If the problem persists please contact Atlassian support! Error: IllegalStateException: Component for type ComponentTypeKey{component=ACTION, type='jira.publish.event'} no longer exits.

Diagnosis

NA

Cause

In Automation for Jira on the Server and Data Center version, there is an automation rule action called Publish event that other add-ons and integrations can listen for. This automation rule action does not exist in Jira Cloud, which is why the error is shown.

Solution

There are two ways to resolve this:

  1. Remove this action from the automation rules on the Jira Server site, and create another export.Or,

  2. Manually edit the exported JSON file, search for "jira.publish.event" and remove those actions.

Depending on what you are trying to achieve with the Publish Event action, For example, there are possible actions in Jira Cloud to send notifications to other systems. Like below:

We have an action in automation for Jira Cloud to Send email. If you were using the publish event action to send emails, then this action will achieve the same action for you.

Updated on May 31, 2024

Still need help?

The Atlassian Community is here for you.