Configure Number of Action Buttons

Based on:

https://answers.atlassian.com/questions/64750/how-to-set-ops-bar-group-size-opsbar-transitions-property-in-jira-config-properties

https://answers.atlassian.com/questions/63782/configuring-the-action-buttons

I am able to tune the number of Workflow buttons via ops.bar.group.size.opsbar-transitions in $JIRA_HOME/jira-config.properties. One problem is that a ghosted "Workflow" dropdown button will appear if the number of transitions available is one less than this value.

But, although my Project is not configured for Greenhopper, I have these silly "Agile Board" and "Rank to Top" buttons which I will never use, prominently placed on my UI. I'd like to get these out of the way. I can not figure a way to configure the button list, but I did try setting ops.bar.group.size.opsbar-operations but I do not observe any change in the number of Operations buttons displayed.

The above screenshot is with jira-config.properties configured like so:

ops.bar.group.size.opsbar-operations = 2
ops.bar.group.size.opsbar-transitions = 4

Jira 5.0.7

2 answers

1 accepted

3 votes

Hi,

One problem is that a ghosted "Workflow" dropdown button will appear if the number of transitions available is one less than this value.
This is being tracked by Atlassian here: https://jira.atlassian.com/browse/JRA-24608

Regarding the setting of the ops.bar.group.size.opsbar-operations property, it worked correctly for me, so it is possible there is sonme problem with the file you've created, so to use it please:

  1. Take the file I've attached and paste it into your JIRA Home directory (jira-config.properties.txt);
  2. Remove the .txt extension from the file (Atlassian Answers doesn't accept uploads for .properties files);
  3. Edit the value inside the file to the one you want (I've set it to two);
  4. Restart JIRA;


Also, if you wish to change the order of the buttons displayed, see this page (search for "Customising the Positions of Items and Sections"). For example, to make the Log Work button appear before the Agile Board, Rank Bottom, etc. buttons, I did the following:

  1. Shutdown JIRA;
  2. Navigate to the $JIRA_INSTALL/atlassian-jira/WEB-INF/classes folder;
  3. Edit the system-issueoperations-plugin.xml file:
    Replace the default value "20" with "11" in the weight attribute in the following line -- line 78 in my test:
    <web-section key="operations-work" name="Ops Bar Operations Work Section" location="opsbar-operations" i18n-name-key="webfragments.view.issue.opsbar.operations.work" weight="11"/>

  4. Save the modifications and restart JIRA.


This attribute I modified is the "rank" attribute of the button. That is, every button/web-section has a 'weight' value and the lower values appear before the higher in the menu. So what I did is I lowered the value of the 'operations-work' web-section so it would appear before GreenHopper.

I hope this helps!

Best regards,
Matheus Fernandes

Thank you sooooooo much for this! Your properties file is a broken link now but it wasn't needed after viewing the very detailed https://developer.atlassian.com/display/JIRADEV/View+Issue+Page+Locations#ViewIssuePageLocations-IssueOperationsBarLocations page that you linked. After rearranging the weight of the opsbar operations-operations to 10 (to be first) then I set the number of buttons displayed to be 4 to cover them all with jira-config.properties: ops.bar.group.size.opsbar-operations=4

I am glad that helped, Geoff! :)

Stupidly, this does not appear possible (I'd like to get rid of them as well). Disable Rapid Board operation when JIRA project is not included in the greenhopper enabled projects

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

546 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you