create button in top application bar?

RameshLakshman August 16, 2019

I would like to add a button which looks like the Create button in the top navigation bar.How do you actually add a Create-like button in the top navigation bar,?

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 16, 2019

Here is simple technique to do it in your plugin.

In `atlassian-plugin.xml` file add this `web-panel`

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

And add a simple file `test-button.vm` in your plugins resources directory and put code like this in that

<li id="test-button">
<a class="aui-button aui-button-primary aui-style" href="/page">Test Button</a>
</li>
RameshLakshman August 16, 2019

Thanks @DPKJ 

Susheela.Kushwaha August 31, 2023

Does this apply to Jira Cloud?

Suggest an answer

Log in or Sign up to answer