Guys,
I used to use the beow script in JIRA 4.4.1 to alter the visibility of a custom field based on another one.
<script type="text/javascript">
priority = document.getElementById('priority');
if (priority) {
target = document.getElementById('customfield_10061').parentNode;
// Hide the target field if priority isn't a Blocker
if (priority.value != 1) target.style.display='none';
priority.onchange=function() {
if (this.value == 1) {
target.style.display = '';
} else {
target.value='n/a';
target.style.display='none';
}
}
}
</script>
The above script doesn't work with JIRA 5.1.3. Do I need to change anything in the script ?
Thanks, Vishnu.