Can't delete field because of Javascript error??

I wrote custom Javascript in the description field of my customField, but I must have had an error because when I go to screens it doesn't load past that field. The problem is it also won't load past that field on the configuration screen where I can edit the description/delete the field and I'm not sure how to get rid of it?


Please Help! Thank you!

1 answer

1 accepted

2 votes
Accepted answer

Another very good reason for not trying to wedge javascript into JIRA.

You've got two options really.

  1. Delete the field completely.  That will destroy all the data you have for issues though.  You need to know the ID of the custom field, so that you can directly paste the "delete" url for it (the delete screen does not render the description, so it should work).  You need to hit http://YourJiraBaseURL/secure/admin/DeleteCustomField!default.jspa?id=10019  , replacing my 10019 with the field ID
  2. Again, knowing the field ID, stop JIRA and run some SQL to kill off the description of the field in the database.  It should be the table Customfield, using the field ID to find the field you need to amend, and update the column description with some simple plain text.  Restart JIRA and you should be able to get back into customfield edit/update/delete


You are a lifesaver! Number 1 is just what I was looking for :)

We were worried if we have screwed the custom field screen for good and were thinking of going to backend to delete the custom field. Thank you the solution really helps 

Also to get the custom field id you can simply right click on the field and say inspect in chrome. Normally you will be able to see the corrupted field in JIRA since the javascript will break edit and other functionality. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,304 views 5 11
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