Sharing workflows with workflow bundles

A workflow is a very complicated component in JIRA as it makes use of other components, such as custom fields and screens. JIRA is used to provide a way for you to export your workflows into XML, but due to the difference between systems, it is often very difficult to import workflows into another system.

Since JIRA 5, there is a new concept called workflow bundle, which makes it possible for people to share their workflows with others. With workflow bundles, it is much easier to export and import workflows from one JIRA to another. So, we will take a look at how to create a workflow bundle based on one of our own workflows.

Getting ready

For this recipe, we need to have the JIRA Workflow Sharing add-on installed. This add-on comes bundled with JIRA, but if you do not have it installed, you can download it from the following link or install it directly using the Universal Plugin Manager:

https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-workflow-sharing-plugin

How to do it…

Perform the following steps to export an existing workflow as a workflow bundle:

  1. Navigate to Administration | Issues | Workflows.
  2. Select the workflow you want to export.
  3. Select the As Workflow option from the Export drop-down menu.
  4. Click on Next.
  5. Review and update the special instructions. JIRA will autogenerate these instructions based on the add-ons used and the components that are stripped away from the workflow.
  6. Click on Export to create the workflow bundle.

Once the workflow bundle is created, you can import it into another JIRA instance using the following steps:

  1. Navigate to Administration | Issues | Workflows.
  2. Select the Import Workflow option from the Import menu.
  3. Select the From My Computer option.
  4. Choose the exported workflow bundle file (.jwb) and click on Next.
  5. Give a name to the new workflow and click on Next.
  6. Map the statuses in the workflow bundle (left-hand side column) to existing statuses in your system (right-hand side column), or you can choose to simply create the missing statuses as part of the import. Once they are mapped, click on Next.
  7. Review the import summary and click on Import to start the process.

There's more…

There are many people who create custom workflows and make them available to the public. When you import workflow bundles, you can select the From Atlassian Marketplace option to see some of the workflows others have created and try them out.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset