Hi,
I have custom script to prevent user add new subtask when parent issue is in one status.
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
stopFunction();
});
stopFunction();
function stopFunction(){
if( AJS.$('#status-val').text().indexOf('Waiting') > 0
){
AJS.$('#create-subtask').hide();
AJS.$('#stqc_show').hide();
}else{
AJS.$('#create-subtask').show();
AJS.$('#stqc_show').show();
}
}
Code works great in standard issue view, but when use Issue Navigator Detail View it don't work. Only '+' button hide, but 'Create Sub-Task' button in More select list is still show.
What i'm doing wrong ? Thx for help