By default, workflow transitions are displayed based on the order in which they are defined in the workflow (as listed in the Text mode)-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 Frozen transition out from the Workflow menu and to its own transition button so that the users can easily access it.
Perform the following steps to rearrange the order of transitions to be displayed in the issue transition bar:
opsbar-sequence
for Property Name and the value 30
in Property Value and click on Add.As shown in the following screenshot, by increasing the sequence value of the workflow transition, it is moved out of the Workflow menu, and made into its own button.
The opsbar-sequence
property orders the workflow transitions numerically, from the smallest to the largest. Its value needs to be a positive integer. The smaller the number, the further the transition will appear at the front.
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: