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

This widget could not be displayed.
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>

This widget could not be displayed.
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

This widget could not be displayed.
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 Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

78 views 0 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