How to enable Test Session tab for certain issue types

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2012

I would like to enable the Test Session tab (Bonfire) for certain issues types only (Bug but not Requirement for example). Is this possible?

1 answer

1 accepted

0 votes
Answer accepted
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2012

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

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2012

HELP!

I added this comment but I missed the last </script> tag and now i can access any menu. how can I fix this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events