While adding Java script to my custom field's Description it is not working. I want to align the custom field. What should i do??


1 answer

Align in the sense do you want to re order your customfield? How do you add? Do you add the script in the customfield in the field configuration or directly in the customfield description?

Yes, i want to re order the custom field and yes, iam adding the JSS directly to the description field.

Thanks  for your response.


why don't you add the javascript in the customfield of your project field configuration it worked for me when I add in the field configuration. Also you can change the order of the customfield directly in the screen but it will be global to all projects using this screen.

Ok, sure then i'll try it thanks......

Actually when iam adding the script to the description field its being automatically updated in the field configuration. But for confirmation i have added once more and its not working, is anything going wrong??

If possible, can you share the script?

This is the script for removing the "none" option in the field

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

Can you try the below code block.

AJS.$("#customfield_10200 option[value='None']").remove();

No, this is too not working.

Can you add your script in the comment field in the field configuration.

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

64 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot