Rearranging the workflow transition bar

By default, workflow transitions are displayed based on the order in which they are defined in the workflow (as listed in the Text mode), where the first two transitions will be shown as buttons and the remaining transitions will be added to the Workflow menu.

This sequence is determined by the order in which the transitions are added, so you cannot change that. But you can rearrange them by using the opsbar-sequence property.

In this recipe, we will move the Move to Backlog transition out from the Workflow menu and to its own transition button so that the users can easily access it.

How to do it…

Perform the following steps to rearrange the order of transitions to be displayed in the issue transition bar:

  1. Select and edit the workflow to configure.
  2. Select the Move to Backlog transition.
  3. Click on the View Properties button.
  4. Enter opsbar-sequence for Property Name and the value 30 in Property Value and click on Add.
  5. Click on Publish Draft to apply the change:
    How to do it…

How it works…

The opsbar-sequence property orders the workflow transitions numerically, from smallest to largest. Its value needs to be a positive integer. The smaller the number, the further at the front the transition will appear.

There's more…

JIRA only displays the first two transitions as buttons. You can change this setting by editing the ops.bar.group.size.opsbar-transitions property in the jira-config.properties file located in your JIRA_HOME directory.

All you have to do is edit the file, set the property to the desired number of transition buttons to display as shown (we are setting the number of transition buttons to 3), and restart JIRA:

ops.bar.group.size.opsbar-transitions=3

As depicted in the following screenshot, JIRA now shows three transition buttons instead of two:

There's more…

Tip

If you do not see the jira-config.properties file, you can simply create a new file with the same name and add your properties there.

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

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