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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot