I would like to enable the Test Session tab (Bonfire) for certain issues types only (Bug but not Requirement for example). Is this possible?
The "Test Sessions" tab is enabled by default. If you want to disable the tab for issue type "Requirement", the following Javascript code could be put in the system banner or in a web resource plugin module.
<script>
(function($){
$(document).ready(function(){
issuetype=$("#type-val");
if (issuetype != null) {
s = issuetype.text();
if (s != null && s.trim() == "Requirement") {
// Atlassian changed the id lately
$("#bonfire-ts-issue-tabpanel").hide();
$("#jira5compat-bonfire-ts-issue-tabpanel").hide();
}
}
});
})(AJS.$);
</script>
Modify the check s.trim() = '....' for other issue types you want to disable
HELP!
I added this comment but I missed the last </script> tag and now i can access any menu. how can I fix this?
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.