Added broken JavaScript to the description of the description field and cannot remove it

I was trying to add some custom JavaScript to the Description of the (built-in) description field for a custom field layout.

 

After I added it the field is no longer editable in the Configure Field Layout screen.

Capture.JPG

Also all fields below that in custom field layout or issue create do not display.

 

I have access to the db and box we have hosting JIRA but I cannot figure out where the data is stored. 

 

Any thoughts?

 

2 answers

1 accepted

1 vote
Accepted answer

Ah, another good reason not to inject javascript in Atlassian applications ;-)

You might try this:

Look at the line above the description in the list of fields.

Hover over the "edit" link, it should look something like:

https://yourjira/jira/secure/admin/EditFieldLayoutItem!default.jspa?atl_token=<some junk>&id=10100&position=5

Copy that link and then paste it into the browser, adding one to the number that is after position= (so in my example, you'd use position=6)

That should get you to the edit screen, so you can remove or correct the javascript!

YES - that worked thanks so much!

 

 

I would not usually add javascript to the description but I am trying to get some templates without buying another add-on :D

I don't mind it when it's the simple stuff, but I tend to come across a lot of broken installations where people simply shouldn't be using it.

0 votes

Hello,

Try customfield table.

Description is a built in field (default to JIRA) and does not live in the customfield table

But it must be somewhere:) Unfortunately I am on holidays now and I do not have access to Jira database. It was just a guess.

jiraissue table? 

No, it is not there ;) You need to find a table with custom layouts I guess. Ok. Now I think I got it

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,949 views 19 22
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