How can I add a button to the application header bar

xattab April 21, 2015

I'm  need  add a button (when click on button open some url)  to the application header bar near custom button "Create issue". Please help

3 answers

2 votes
dimapasko April 22, 2015

If you want this menu item looks like button("Create" button as example)

Create plugin as described in https://developer.atlassian.com/jiradev/jira-platform/other/tutorial-adding-menu-items-to-jira and add to

atlassian-plugin.xml

<web-panel key="test-menu" location="com.atlassian.jira.plugin.headernav.left.context" weight="35">
        <label>test</label>
        <resource type="velocity" name="view" location="test-menu.vm"/>
    </web-panel>

create test-menu.vm file in /resource folder with a content

#disable_html_escaping()
<li id="test-menu">
    <a class="aui-button aui-button-primary aui-style" href="http://google.com">Test</a>
</li>
xattab April 23, 2015

thankyou, Dima

0 votes
xattab April 23, 2015

How I can change number of button on the application header bar ?

dimapasko April 23, 2015

How many buttons do you have? Do you want to add or remove buttons?

xattab April 26, 2015

I have 6 buttons, and wont add more

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2015

Edit the properties file as detailed at https://confluence.atlassian.com/display/JIRAKB/How+to+edit+the+jira-config.properties+file and https://confluence.atlassian.com/display/JIRA/Advanced+JIRA+Configuration - you need to look for the "opsbar" properties in the jpm file to copy into jira-config.properties

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 22, 2015
xattab April 23, 2015

thankyou, Nic

Suggest an answer

Log in or Sign up to answer