How do you set a thumbnail for a custom JIRA report

Hi, I have a simple question that I could not find in the documentation or examples. How do I set the thumbnail for a custom report? Preferably, there would be a way similar to how the plugin icon/logo is set:

        <vendor name="${}" url="${project.organization.url}" />
        <param name="plugin-icon">images/pluginIcon.png</param>
        <param name="plugin-logo">images/pluginLogo.png</param>

3 answers

1 accepted

Add a new web-resource referring to your images and ccs-file having "test-report-thumbnail" to your atlassian-plugin.xml and set the context of that web-resouce to "". This resources will be automatically downloaded and you do not have to write any code (implicit knowledge). 

Kind regards,

After long time of searching I found the page which describes how to add thumbnail for custom report.
You have to create new css class which will contain defined background-image attribute like here:

body .test-report-thumbnail:before {
width: 268px;
height: 138px;
background-repeat: no-repeat;
background-image: url(images/test-logo-report.png);

After you create css class you have to use it in report's xml definition in atlassian-plugin.xml file:

&lt;thumbnail cssClass="test-report-thumbnail" /&gt;

I hope this post will be helpful for others.

Best regards

<thumbnail cssClass="test-report-thumbnail" /> seems to be fine. 

But here, I have an issue in loading the css file contents in my custom reports. Any suggestions?

I tried writing some code in .css file. But nothing is getting reflected.

Thank you Frank. It helped me to load my css into reports page!


body .report-thumbnail-userworklogreports:before {
background-image: url("sample.png");



&lt;resource type="download" name="sample.png" location="images/sample.png"/&gt;
&lt;thumbnail cssClass="report-thumbnail-userworklogreports" /&gt;




Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot