How to Add Button to Operations Bar using an Add-On

Parker Sims November 16, 2017

Does anybody know if it's possible to add a button to the Operations bar by developing an Add-On?

operations-bar.JPG

It looks like the  jira-config.properties file will let you slightly modify which buttons you see, but can you modify that using an add-on?

Furthermore, the button I would be adding would reference a custom field that we created for our project. Is this possible?

Many thanks,

-P

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2017

Hello,

You can add a button to the toolbar by developing a plugin. There is a tutorial for Jira Server version

https://developer.atlassian.com/jiradev/jira-platform/guides/other/tutorial-adding-menu-items-to-jira

Though I do not understand what you mean by referencing a custom field.

Parker Sims November 16, 2017

Hello!

 

Thanks for looking into this. Though I am trying to add a button to the Operations bar when viewing an issue in our project, as opposed to the toolbar. (Next to the Start Progress, Assign, etc. buttons)

The image in the original request is where I'm looking to add it.

In regards to the custom field reference, The intended button is going to trigger a custom field that we have created (A _Snooze Until_ field)

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2017

I see. You do not want to develop a plugin. You want to use an existing plugin which would let you add a button. You can use Adaptivist Scriptrunner plugin. You can read more how to add it here

https://scriptrunner.adaptavist.com/4.3.9/jira/fragments/WebItem.html#_simple_link_example

The place where the button should appear called the section. You can define the name of the section by using Fragment locator. Read more here about Fragment locator

https://scriptrunner.adaptavist.com/4.3.3/jira/CustomisingUI.html#_usage

You will also find there information how to make dialogs and so on.

Suggest an answer

Log in or Sign up to answer