JIRA - JAVASCRIPT - hide customfield doesn't work

In JIRA 5.1.6,

I'm trying to hide a customfield by a JAVASCRIPT (in description field)

this is my code :

<script language="JavaScript">

but no success ...



2 answers

1 accepted

This widget could not be displayed.

Did you make sure this code will be executed after the content has been loaded in the page ?I recommend running this witing

It should be within "$(document).ready", so should be like this:

AJS.$(document).ready(function() {



This widget could not be displayed.
Timothy Chin Community Champion Jan 16, 2013

Try it with:


This is maybe related to the nature of this field ? It is a free Text Field.

Hi Tim,

Thanks for your help.

I'm still having the issue.

I don't if it's coming from my version.



Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 5 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

23 views 0 2
Join discussion

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