Adding Java script to JIRA custom fields

Hi

How do i add Java script to custom fields, i need to validate the custom field entry using java script.

Please send me example and procedure to do this.

Thanks In advance

Ram

2 answers

This widget could not be displayed.

Add it in the description of the field under the field configurations.

http://confluence.atlassian.com/display/JIRA/Associating+Field+Behaviour+with+Issue+Types

I tried to associate javascript (https://confluence.atlassian.com/display/JIRA052/Fields+Allowing+Custom+HTML+or+JavaScript) in the Description of the custom fields but it gets stripped off in the create/edit popup (I checked with firebug). My JIRA version is 5.2.9. Any hints?

Thanks in advance.

Hi,

what I meant is that java script gets stripped off in the create/edit popup: if I look at the popup page with firebug, the java script is just not there. On the other hand, If I look at the custom field description, I see it ...

Regards.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

143 views 1 3
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