Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Oscar Yeung January 9, 2018

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

1 vote
Answer accepted
Oscar Yeung January 9, 2018

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>
Oscar Yeung January 12, 2018

Actually I figured it out.

Angela S January 19, 2018

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!

0 votes
Susan Hauth _Jira Queen_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2018

Hi Oscar,

Which plugin did you enable?

SUsan

Oscar Yeung January 9, 2018

A custom made report plugin.

Susan Hauth _Jira Queen_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2018

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

Oscar Yeung January 9, 2018

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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2018

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!

Oscar Yeung January 9, 2018

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2018

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!

Oscar Yeung January 9, 2018

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2018

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

Oscar Yeung January 10, 2018

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
TAGS
AUG Leaders

Atlassian Community Events