The way to enable or disable GreenHopper each JIRA project.

Miyako Sugimoto January 16, 2013

We can enable or disable GreenHopper on JIRA.

When GreenHopper is invalid, all projects of JIRA is not shown Agile menu.

We hope the following.

For example, A-project uses GreenHopper, but B-project does not use GreenHopper.

Can we use GreenHopper depending on the JIRA project?

3 answers

1 vote
Dave C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2013

This came from a support case Miyako raised with us, and has been directed towards Answers as he's looking for a modification to JIRA. To clarify, Miyako would like to hide the Agile button for certain projects. You can do this with a modification to the Announcement Banner to include some JS along the lines of the following:

<script type="text/javascript">

window.onload= function()
{
 document.getElementById('greenhopper_menu').parentNode.style.display = 'none';
}
</script>

There would need to be some validation in there to determine when to hide that element which could be determined by the current project key. I'm not quite sure how to fetch this with JS however hopefully this will push you in the right direction.

Renjith Pillai
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.
January 17, 2013

Extending what Dave said

<script type='text/javascript'>
AJS.$(document).ready(function() {
    var projectName = AJS.$("#project-name-val").text();
    if(projectName != 0 && projectName != "Test Project") {
        AJS.$("#greenhopper_menu").hide();
    }
});
</script>

0 votes
Renjith Pillai
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.
January 16, 2013
I am guessing that the usage of Gh is enabled for all. That setting is for classic boards. I think.
0 votes
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2013

Hi,

yes, you can enable GreenHopper either for all projects or for some projects only. Look at the administration part of Jira: GreenHopper -> Activated Projects

Cheers

Thomas

Suggest an answer

Log in or Sign up to answer