Forums

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

Whether the ID's of HTML elements used to build JIRA change with JIRA upgradtion or not?

THOMAS REJI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2018

Hi Guys,

I am injecting  some javascript to JIRA in order to change the field name dynamically. I am relying on the ID and title of JIRA elements rendered at client side (from browser console)  in order implement the feature. If these IDs or title under gone for any kind of change my application will effect. So please let me know is there any possibility of changing these values during JIRA up gradation (in Future)

1 answer

0 votes
Nic Brough -Adaptavist-
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.
February 19, 2018

Some will, some will not.

You really should not be using javascript to do this, unless it's bundled into an add-on where you can make the calls dynamic so you don't need to worry (i.e. they work out the ids, not hard-code them)

THOMAS REJI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2018

Hi Nic,

Thank you for your kind reply. I have written a code like

"AJS.$("label[for='customfield_12504']").text("Release");"

 

will this get effected?

Suggest an answer

Log in or Sign up to answer