I'd just upgraded our JIRA instance from 5.2.5 to 6.4.1.
There is an existing javascript where we could hide some issuetpyes based on some condition.
Apparently due to the changes on aui in JIRA 6.4, it changed the behavior of the issue type field.
Existing working code:
<script type="text/javascript">
jQuery(document).ready( function($)
{
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(e,context)
{
callJSFunction();
});
callJSFunction();
function callJSFunction()
{
var select2 = document.getElementById("issuetype");
select2.options[1] = null;
}
});
</script>
Any idea would be appreciated.
Thanks.
I'd resolve the problem myself...using external plugin.
"Issue Type Filters".
Can you try this way?
jQuery(document).ready( function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
setTimeout(function() {callJSFunction();}, 50);
});
function callJSFunction() {
var select2 = document.getElementById("issuetype");
alert(select2)
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.