The way to enable or disable GreenHopper each JIRA project.

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
David Currie Atlassian Team Jan 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.

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
Thomas Schlegel Community Champion Jan 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

I am guessing that the usage of Gh is enabled for all. That setting is for classic boards. I think.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

62 views 4 0
View post

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