I add to my plugin project-tabpanel:
<project-tabpanel key="test-panel" name="Test Panel"
class="ru.my.jira.plugins.TestPanel">
<description>Test project panel.</description>
<label>Test</lanel>
<order>155</order>
<resource type="velocity" name="view" location="templates/testProjectTabPanel.vm"/>
</project-tabpanel>
And now, if i create issue (QuickCreateIssue) in project page http://localhost:8090/browse/TESTI get javascript error:
"TypeError: tabToCompare is null" in this script http://localhost:8090/s/ru_RUmyiiur-1988229788/6106/3/1.0/_/download/batch/jira.webresources:browseproject/jira.webresources:browseproject.js
In this script I find:
getTab = function (url) {
var tabRegExp = /selectedTab=(?:.*)(?:%3A|:)([^&]*)/, tabToTarget = url.match(tabRegExp), tab;
jQuery(tabs).each(function() {
var tabToCompare = jQuery(this).find("a").attr("href").match(tabRegExp);
if (tabToTarget && tabToTarget.length > 0 && tabToCompare[1] === tabToTarget[1]) {
tab = this;
}
});
return tab;
};
In other page (like http://localhost:8090/browse/TEST?selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel, http://localhost:8090/browse/TEST?selectedTab=com.atlassian.jira.plugin.system.project%3Alabels-heatmap-panel- in all pages, that contains "selectedTab=") - issue created without error.
If i remove my custom project-tabpanel - issue in page http://localhost:8090/browse/TESTcreate without error too.
How fix this bug?
Community moderators have prevented the ability to post new answers.
I find solutions - my plugin key contain "JIRA" - and this regexp "var tabRegExp = /selectedTab=(?:.*)(?:%3A|:)([^&]*)/" in inner JIRA system script not found my project-tabpanel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. I'm from Teamlead and we also had problem with this plugin. Fortunately we've discovered it recently. Stay tuned for plugin updates on the Marketplace - the error is resolved now.
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.
And if you try hiding the tab with the id when a regular expression is met
I think that is faster and easier than the function that these occupy.
greeting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to know if I understood,
you are doing according to a particular URL shown or hidden tabs??
what is wrong, to see if I can help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.