Adding Java script to JIRA custom fields

Prasad April 29, 2012

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

1 vote
Chaithra N
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.
April 28, 2013
Philippe MARTIN April 28, 2013

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.

0 votes
Jobin Kuruvilla [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.
April 29, 2012

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

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

Philippe MARTIN April 28, 2013

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.

Suggest an answer

Log in or Sign up to answer