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

0 votes

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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,500 views 15 20
Read article

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