How to enable Test Session tab for certain issue types

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

This widget could not be displayed.

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?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

69 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you