Hi we have a requirement from a client to make the bulk edit, transition, Resolve issue screen, comment text box to be made mandatory. For single issue this is working fine by adding an 'AJS script' in the 'Comment' Field confuguration description.
For bulk Resolution we have created a below script,
<script>
AJS.toInit(function () {
AJS.$(".form-body #cancel").click(function(e){
window.location.href = 'BulkCancelWizard.jspa'
return true;
}
);
AJS.$(".form-body .aui-button").click(function(e){
var comment=AJS.$("#jira #page #content .aui-page-panel .aui-page-panel-inner .aui-page-panel-content #bulkedit .form-body .aui .comment-input #comment").val();
if(comment==""){
AJS.$(".bulk-affects").html("<br/><div id='resErrror' style='color:red;margin-left:30px'>Comment is mandatory</div>");
return false;
}
});
});
</script>
We have two projects sat A and B. We have put the above script in 'Resolution' Field configuration. Actually we have two 'Resolution' field configuration , both of which looks similar. When we put the script in one of the 'Resolution field of one of them, project 'A', bulk Resolution, comment section become mandatory. When i put in the other one Project 'B's, bulk Resolution, comment section become mandatory. Both the resolution field configuration shows, "shared by 2 projects", which include both of them in concern.
Where is this mapping done. I can put in both of them for local, but in our client's environment, when I put in both also, the comment is not gettiing mandatory for any of the projects.
So where is this mapping between project and Buld Resolution made? Please help me with this as soon as possible. it is already late for us. Thanks.