Can I hide/show a field based on another field's value without using the Behaviours Plugin?

I have JIRA 6.0.8 and have tried putting the following script in my custom field (free text unlimited) called "Test Script". I only want the field to display when the custom radio button field "Auto/Manual" is set to "Manual".

I entered the script in the description (Custom Fields / Edit / Description)

10900 is the Auto/Manual field, 11300 is the Test Script field

I am using Chrome. Haven't tried any other browsers.

<script type="text/javascript">

AJS.$(document).bind('dialogContentReady', function(event, dialog) {

field = document.getElementById('customfield_10900');

if (field) {

target = document.getElementById('customfield_11300').parentNode;

// Hide the Test Script field if Auto/Manual doesn't equal Manual

if (field.value != 'Manual')'none';

field.onchange=function() {

if (this.value == 'Manual') { = ";

target.value="Specify the name (or ID) of the test script where the sub-test is to be manually tested.";

} else {'none';





1 answer

I have the similar issue. I cannot use Bheaviours plugin as it is not supported in JIRA 6.2.3.

Can someone help??

Suggest an answer

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

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

53 views 0 2
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