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

This widget could not be displayed.

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
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 Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

528 views 23 15
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