It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

BłażejO Feb 19, 2013

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

2 votes
Nitram Mar 18, 2013
1 vote
Radu Dumitriu Mar 18, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

807 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you