Hi everyone,
I am developing a JIRA report plugin and I need to add another property (field) into report configuration page. However after I do that, I have to restart JIRA for changes to take effect. I can survive this while development, however restarting live system for just installing new version of a plugin seems to be too much.
How can I solve this? Non of plugins from market requires this, so there must be a way.
For your reference, I've tried so far:
Non of that works. I've seen a lot of questions on the subject, but there were no solutions.
Here is my atlassian-plugin.xml:
<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="report2"/>
<!-- add our web resources -->
<web-resource key="report2-resources" name="report2 Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="report2.css" location="/css/report2.css"/>
<resource type="download" name="report2.js" location="/js/report2.js"/>
<resource type="download" name="images/" location="/images"/>
<context>report2</context>
</web-resource>
<report name="Monitor Report" i18n-name-key="monitor-report.name" key="scope-monitor-report" class="com.reports.jira.reports.Monitor">
<description key="monitor-report.description">Monitor Report</description>
<resource name="view" type="velocity" location="/templates/reports/monitor-report/view.vm"/>
<resource name="view.css" type="download" location="css/view.css"/>
<resource name="i18n" type="i18n" location="MonitorReport"/>
<label key="monitor-report.label"/>
<properties>
<property>
<key>build</key>
<name>monitor-report.build.name</name>
<description>monitor-report.build.description</description>
<type>select</type>
<values class="com.reports.jira.reports.BuildParamsValuesGenerator"/>
</property>
<property>
<key>bsa</key>
<name>monitor-report.bsa.name</name>
<description>monitor-report.bsa.description</description>
<type>user</type>
<values class="com.atlassian.jira.issue.customfields.impl.UserCFType"/>
</property>
</properties>
</report>
</atlassian-plugin>
Hello everybody,
I have the same issue, report configuration page is not updated after its code has been changed. I am tried to remove the cache, update report version, did full reindexing, nothing works for me (only Jira restarting). Looks like a Jira bug...
Have anybody solved this issue already?
Seems there is a workaround for reloading reports without Jira restart:
I did not tried this yet, but hopeful it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How are you developing it? Are you using atlas-run/debug in the sdk? That should be by default disabling caching (which it sounds like you're hitting).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
No, I use atlas-package and then install target jar onto my JIRA instances.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An update:
If I install a newer version of the plugin, the source code is being updated, but the configuration form of the plugin not. E.g. as I'm adding a new property and do some checks in code, I get an error as there is no parameter specified in the URL, but it is expected in the code. So if I add parameter to the URL, I get result from the new code.
Example:
it looked like this before:
ConfigureReport.jspa?build=REL-43&selectedProjectId=11012
And when I press Next after report configuration I get NullPointerException.
So now it should look like this:
ConfigureReport.jspa?build=REL-43&bsa=&selectedProjectId=11012
OR
ConfigureReport.jspa?build=REL-43&bsa=georgie&selectedProjectId=11012
and I get correct results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Often times cache keeps serving changes from the previous versions.
(Although this happens to me after when dealing with changes in JavaScript)
But you could still try by deleting all the cached files and images from your browser to see if it picks up the changes or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply. Actually I already tried this already and just in case tried it again right now. It doesn't help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.