Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,203
Community Members
 
Community Events
168
Community Groups

Announcement Banner - Autocomplete Renderer for Multi-Select Custom Field (Jira 9.1.0)

Hi!,

We're running tests on a Jira instance to see how Jira works with version 9.1.0, and we found an issue with the Announcement Banner that not showing up in Jira version 8.22.2.

In the Announcement Banner we have a script to enable Autocomplete Renderer for Multi-Select Custom Field, the problem in version 9.1.0 is that if the edit/creation screen appears through a Pop Up, the Announcement Banner configuration for the field does not work , but if we open the edit/create screen in a new tab the configuration works correctly.

This is the script that we have in the Announcement Banner:

<script type="text/javascript">
//MARKETS
(function(cf_12615) {

function convertMulti(id){
if (AJS.$('#'+id+"-textarea").length == 0){
new AJS.MultiSelect({
element: AJS.$("#"+id),
itemAttrDisplayed: "label",
errorMessage: AJS.params.multiselectComponentsError
});

}
}

AJS.toInit(function(){
convertMulti("customfield_12615");
})

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
convertMulti("customfield_12615");
});

})(AJS.cf_12615);
</script>

 As I indicated this incident does not happen in the version of Jira 8.22.2

JIRA 8.22.2.pngJIRA 9.1.0.png

Does anyone know why this script works on Jira 8.22.2 but not on 9.1.0?

 

Regards,

Gustavo Monsalve

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.1.0
TAGS

Atlassian Community Events