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

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 vote
Alexey Matveev Community Champion Jan 05, 2018

Hello,

Try customfield table.

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

Alexey Matveev Community Champion Jan 05, 2018

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.

Alexey Matveev Community Champion Jan 05, 2018

jiraissue table? 

Alexey Matveev Community Champion Jan 05, 2018

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

749 views 2 19
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