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

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 vote
Alexey Matveev Community Champion Nov 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.

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)

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

172 views 1 17
Join discussion

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