Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Java Script Error in Custom Field

donald.hardy July 13, 2020

I have problem with a custom field (checkbox).  I have some incomplete Java script in the description field (saw this from the audit log), and that is preventing me from accessing the field to edit or delete the field.  Whenever the field displays on the Custom Fields page, the page locks up and none of its properties are displayed on the page.

I tried to access the field from the View Field Configuration page, but the edit function does not show up and the page does not display anything beyond bad custom field.

We are running Jira Service Desk 4.5.0 Server. 

1 answer

1 accepted

0 votes
Answer accepted
Italo Qualisoni [e-Core]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2020

Hi @donald.hardy ,

You can try to access the field using the direct URL.

First you need to get the custom field ID that you want to edit, you can do it by accessing this url, example below:

http://192.168.0.17:8080/rest/api/2/field

getfieldUntitled.png

 

In my example I want to edit the customfield_10400, let's say that this custom field is the one that has the bad javascript on its description.

Having the field id, you can directly access the below url, replace 10400 for your field id:

http://192.168.0.17:8080/secure/admin/EditCustomField!default.jspa?id=10400

 

brokenjsScreenshot_6.png

From here you should be able to modify the script.

Let me know if my answer matches with what you described.

donald.hardy July 14, 2020

Yes, that worked.  Thank you very much Italo.

Suggest an answer

Log in or Sign up to answer