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

Accepted Answer
2 votes

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
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,010 views 2 7
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