Custom JIRA report plugin installed successfully but not showing up in report section

Hello,

 

I have installed a custom report plugin and I can see that it is enabled in the add-ons manager. 

However, when I go to a project's report section, it is not on the list of reports that I can choose.

 

Any ideas as to what is wrong?

 

 

2 answers

1 accepted

This widget could not be displayed.

here's the xml code:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="test-table-four"/>
<!-- add our web resources -->
<web-resource key="test-table-four-resources" name="test-table-four Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="test-table-four.css" location="/css/test-table-four.css"/>
<resource type="download" name="test-table-four.js" location="/js/test-table-four.js"/>
<resource type="download" name="images/" location="/images"/>
<context>test-table-four</context>
</web-resource>



<report name="Test Table Four" key="test-table-four" class="com.examplecompany.reports.jira.reports.TestTableFour">
<description>The Test Table Four Plugin</description>
<resource name="view" type="velocity" location="/templates/reports/test-table-four/view.vm"/>
<resource name="i18n" type="i18n" location="TestTableFour"/>


<properties>
<property>
<key>build</key>
<name>test-table-four.build.name</name>
<description>test-table-four.build.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.BuildParamsValuesGenerator"/>
</property>
<property>
<key>team</key>
<name>test-table-four.team.name</name>
<description>test-table-four.team.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.TeamParamsValuesGenerator"/>
</property>
<property>
<key>developer</key>
<name>test-table-four.developer.name</name>
<description>test-table-four.developer.description</description>
<type>user</type>
<values class="com.atlassian.jira.issue.customfields.impl.UserCFType"/>
</property>
<property>
<key>status</key>
<name>test-table-four.status.name</name>
<description>test-table-four.status.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.StatusValuesGenerator"/>
</property>
<property>
<key>issues</key>
<name>test-table-four.issues.name</name>
<description>test-table-four.issues.description</description>
<type>text</type>
</property>
</properties>

</report>
</atlassian-plugin>

Actually I figured it out.

Hello, I'm facing the same problem after following the Create Report Tutorial. Would you mind to tell me what was wrong in the atalsian-plugin.xml definition? I'm comparing the code but I can't figure out what the problem is.... Thanks in advance!

This widget could not be displayed.
Susan Hauth Community Champion Jan 09, 2018

Hi Oscar,

Which plugin did you enable?

SUsan

A custom made report plugin.

Susan Hauth Community Champion Jan 09, 2018

Does it have a name?  Did you purchase it?  Did you create it?

It has a name like 'test-table'. It's just a simple report plugin that I created to see if I could. 

 

My java file does compile so I'm not sure if the problem lies there although that could still be a possibility.

 

I was thinking that this would be a simple 'atlassian-plugin.xml' problem and it would be simple fix of adding some code in there to make it appear.

You are looking in the right place, a report add-on that enables ok, but does not insert a report in the list usually has a broken atlassian-plugin.xml.  Can't tell you much more without seeing it!

Are there any lines of code that would obviously be the culprit? Also are there any commands that would force it to show up?

It's usually the class key or the menu-item definition, but it can be all sorts of things.

There's no way to "force" anything.  It can't be done.  Imagine you have a library where you can't find a book because it's got the wrong classification.  It's not in the library because it thinks it's a badger and libraries don't include countryside!

Is there a way to use a web menu module to contain only the report desired? Would that help?

No, because the module would be being misled by the same problem.

here's the xml code:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="test-table-four"/>
<!-- add our web resources -->
<web-resource key="test-table-four-resources" name="test-table-four Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="test-table-four.css" location="/css/test-table-four.css"/>
<resource type="download" name="test-table-four.js" location="/js/test-table-four.js"/>
<resource type="download" name="images/" location="/images"/>
<context>test-table-four</context>
</web-resource>



<report name="Test Table Four" key="test-table-four" class="com.examplecompany.reports.jira.reports.TestTableFour">
<description>The Test Table Four Plugin</description>
<resource name="view" type="velocity" location="/templates/reports/test-table-four/view.vm"/>
<resource name="i18n" type="i18n" location="TestTableFour"/>


<properties>
<property>
<key>build</key>
<name>test-table-four.build.name</name>
<description>test-table-four.build.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.BuildParamsValuesGenerator"/>
</property>
<property>
<key>team</key>
<name>test-table-four.team.name</name>
<description>test-table-four.team.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.TeamParamsValuesGenerator"/>
</property>
<property>
<key>developer</key>
<name>test-table-four.developer.name</name>
<description>test-table-four.developer.description</description>
<type>user</type>
<values class="com.atlassian.jira.issue.customfields.impl.UserCFType"/>
</property>
<property>
<key>status</key>
<name>test-table-four.status.name</name>
<description>test-table-four.status.description</description>
<type>select</type>
<values class="com.examplecompany.reports.Utils.StatusValuesGenerator"/>
</property>
<property>
<key>issues</key>
<name>test-table-four.issues.name</name>
<description>test-table-four.issues.description</description>
<type>text</type>
</property>
</properties>

</report>
</atlassian-plugin>

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 13, 2018 in Jira Service Desk

Jira Service Desk – Don’t be afraid, the journey begins with curiosity!

...be more productive while being fun to use at the same time. For some, getting started can be a bit intimidating. This is especially true if Jira Service Desk is your first exposure to Atlassian...

8,610 views 9 28
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