Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Facing Problem in Custom Field of jira Edited

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.


2 answers

1 accepted

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









    JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {

        AJS.$("#customfield_11000 option[value='-1']").remove();





Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

114 views 1 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you