How can I control the rendering of content around a web-panel in Jira?

I'm trying to add a <h1> heading to a web-panel in JIRA, and I can't prevent the application from putting in CSS that screws up the look.

In atlassian-plugin.xml (slightly redacted)

<web-item key="xxx" section="jira.project.sidebar.plugins.navigation" weight="400">
<param name="iconClass" value="aui-icon-large icon-sidebar-components"/>

<web-panel key="czzz" location="yyy:zzz">
<resource name="view" type="velocity" location="/templates/panels/my.vm"/>
<context-provider class="MyContextProvider"/>

In my.vm

<section class="aui-page-panel-content contains-header" id="sidebar-page-container">
<header class="aui-page-header aui-page-header-fixed header-with-border">
<div class="aui-page-header-inner">
<h1>My Header</h1>

<section class="aui-page-panel-content aui-page-panel-content-no-table">
<p>Blah Blah</p>

Problem is, JIRA is putting

<section class="aui-page-panel-content">

Just before rending my velocity file, which means that the crucial "contains-header" CSS class is missing, and therefore the whole page looks weird.

Any ideas?

1 answer

This widget could not be displayed.
Alexey Matveev Community Champion Dec 25, 2017


If you have your code somewhere in Github or Bitbucket it would be nice to have a reference to it so that it could be executed and checked

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

178 views 1 3
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