I am developping an Atlassian Connect add-on for JIRA, and I would like to add a view from the Project view, using jiraProjectTabPanels entry in atlassian-connect.json file.
But what should be the HTML structure of my view? When I say structure: it’s about classes to use inside my view (aui*, header, content, …?): is there a structure to follow?
Thank you for information! Actually, this is what I get when I try the example from the design guidelines:
<section id="content" role="main">
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav">
<!-- content such as a vertical nav -->
</div>
<section class="aui-page-panel-content">
<!-- main area for content -->
</section>
</div>
</div>
</section>
@dmeyer, when you recommend not to use jiraProjectTabPanel, are you referring to JIRA Server development, or JIRA Cloud development, or both?
I am aware that the Project Tab Panel plugin module is deprecated in favour of the project-centric view approach; but I understood that Tab Panels are the recommended way to get content embedded in project view in JIRA Cloud. Am I right?
I have an outer div with class="ac-content" so that everything gets resized automatically. Inside that, I’ve gone for an aui-page-header and an aui-page-panel. I did not start with the higher-level structure of a ‘page’ because that layout is:
“intended for use with the full set of application header, navigation, page header, footer, etc.”
Now, the grey background you can get rid of by applying a little css to the body of your HTML page:
What annoys the stuffing out of me is that the heading at the top of the panel - “Deeper” in your case - cannot be removed; it is rendered outside of the iframe itself. I would rather be given the freedom to render my own title for the panel.
Fred, do you need to fill up the entire page? For me, I’m OK with the iframe expanding to cater for the content inside itself. The other thing you could possibly try is the JavaScript API options, sizeToParent in particular.
Also did you put set the background to transparent on the body tag?
Nope, but I am pretty sure your Javascript piece of code will do the job, as I am using the AP.sizeToParent() to resize a page content on JIRA main screen and that’s working.
I thought this resizing feature would be OK with only a HTML structure to follow…
I’m still can’t get my webpanel fully sized to page. My goal is to have project-centric page that will have really long content. I’d like it to have “floating header”, so I’d like to have scrollbar in my iframe.
sizeToParent does not currently work at all on Project-specific web panels. @dmeyer says it will be slated for a fix soon. [ACJIRA-1207] - Ecosystem Jira