Jira cutting out scrpits from description of fields on create issue pop-up.

Hello.

I have following problem: when I click "Create issue" and the issue creation pop-up appears it cuts out any javascript that is attached in the fields or in their descriptions. Script is executed once on the load and then disappears from the code.

I added a <script></script> with some jquery to the description of particular field.

When I open "Create issue" link in new tab, everything is ok - script sits comfortably under the field and is doing his job:

However, when I click the very same "Create issue" it creates issue creation pop-up (probably ajax powered) that strips ANY script from the loded code:

It seems like ajax is cutting out any script on the load. Is there any workaround for this? I really need some simple jquery to be attached to the code to manipulate visibility, values and style of screen depending on user actions.

Field templates are far too poor (can't set default values for system fields).

Velocity templates can do only a small portion of what I need.

I don't have time to learn coding of behaviors plugin.

jQuery is exactly what I need, but it gets cut out...

2 answers

You should check this stuff. It was created especially for this kind of problems:

http://confluence.kepler-rominfo.com/display/JJUPIN/How+%27Live+Fields%27+work#HowLiveFieldswork-Example

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...

235 views 1 18
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