Multi Level Cascade Select Plugin forgets saved values on Edit screen

J Thomas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2012

We're testing JIRA 4.4.5 with JMLCS 2.5. We've found that if you edit an issue that has a JMLCS field on the Edit screen then only the first level is defaulted to the existing saved value and all other levels forget their saved values.

This means that data can be lost without the user realising when the edited issue is saved.

This doesn't happen if the screen is shown during a transition, only when clicking on the issue Edit link.

Any chance of a fix any time soon?

(It seems a bit weird to raise plugin bugs here but this is where the Plugin Exchange directs you.)

3 answers

1 vote
Brent Kennedy March 5, 2013

This is an issue with jquery execution order. Edit multilevelcascadingUtil.js (in ATLASSIANHOME/includes) and place the code below (based on clickFirstVisible) in place of the call to clickFirstVisible(slaveSelector) in the dynamicMultiLevelSelect function. This makes it execute the jquery calls in the correct order for the plugin to work as expected.

change from:

$(slaveSelector).show();
clickFirstVisible(slaveSelector);

To:

$("option:first", slaveSelector).each(
function() {
$(slaveSelector).attr("selectedIndex", this.index);
$(slaveSelector).trigger("change");
}
);
$(slaveSelector).show();

0 votes
Aviva June 9, 2013

Does anyone know if this issue was resolved for Jira 5?

Pandu Ranga October 16, 2013

Yes, it is resolved

0 votes
suryavani bhallamudi August 1, 2012

Plz help me i am also looking for the solution

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events