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

0 votes


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
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,082 views 0 8
Read article

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