We have upgraded jira from v8.5.3 to v8.13.7 and after upgrade i am facing problem in some of custom fields.
This is mainly into multi select field.
Issue resolved -This is due to product bug-[JRASERVER-70859] Disallow HTML in custom field descriptions and list item values by default - Create and track feature requests for Atlassian products.
I can see script is not compiling and getting below error.
The script could not be compiled: <pre>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script10.groovy: 1: unexpected token: < @ line 1, column 1. <script type="text/javascript"> ^ 1 error </pre>.
Below mention is code.
<script type="text/javascript">
(function($) {
AJS.$("#customfield_11000 option[value='-1']").remove(); //Removes the default value "None"
function convertMulti(id){
if (AJS.$('#'+id+"-textarea").length == 0){
new AJS.MultiSelect({
element: $("#"+id),
itemAttrDisplayed: "label",
errorMessage: AJS.params.multiselectComponentsError
});
}
}
AJS.toInit(function(){
convertMulti("customfield_11000");
})
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
AJS.$("#customfield_11000 option[value='-1']").remove();
convertMulti("customfield_11000");
});
})(AJS.$);
</script>
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.