Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

DanielG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 25, 2017

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"/>
<link>/projects/$pathEncodedProjectKey?selectedItem=yyy:zzz</link>
</web-item>

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

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>
</div>
</header>

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

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
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 25, 2017

Hello,

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
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events