Hi,
we have a working custom plugin, developed for Jira 8.5, which uses auiSelect2
Now, since upgrading to Jira 8.11, it no longer works, failing with the error:
Failed to run init function: AJS.$(...).auiSelect2 is not a function
The first line of my *.vm file is importing the select:
$webResourceManager.requireResourcesForContext("com.atlassian.auiplugin:aui-select2")
Followed by:
<script type="text/javascript">
AJS.toInit(function () {
console.log('Hello');
AJS.$("#select-one").auiSelect2();
AJS.$("#select-two").auiSelect2();
...
});
</script>
I've tried to look into some upgrad differences, but I can't see any guides for upgrading from jira 8.5
According to AJS.version the AUI version is 8.6.0
I have also tried adding
<dependency>com.atlassian.auiplugin:aui-select2</dependency>
to my plugin xml, but nothing changed