Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to check if Project Centric Navigation is enabled for connect addons ?

SanjeevP March 27, 2015

In JIRA server I have used the package com.atlassian.jira.config.FeatureManager to check if Project Centric Navigation is enabled.

Is there any package available for connect addons to check the same ?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Yves YANG
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.
July 31, 2015

Thanks James!

0 votes
James Hazelwood
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 30, 2015

Update:

since JIRA 6.4, PCN is on by default, and is switched off by a dark feature, so the appropriate condition block is now:

EDIT: the original code sample had an error

"conditions": [{
    "condition": "feature_flag",
	"invert": true,
    "params": {
       "featureKey":  "com.atlassian.jira.projects.ProjectCentricNavigation.Disabled"
    } 
  }]
0 votes
seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2015

You can add the following condition to your module:

"condition": {
    "condition": "feature_flag",
    "params": {
       "featureKey":  "com.atlassian.jira.projects.ProjectCentricNavigation"
    } 
}
SanjeevP March 29, 2015

Please mention a way to make a check in client or the server code to know if this feature is enabled ? For Jira sever I have used java featureManager package to get this information.

seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2015

It's not possible at the moment.

SanjeevP March 29, 2015

Ok. Thanks @Seb Ruiz

Yves YANG
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.
June 3, 2015

This condition seems always "false". I have tested with my AddOn, the project Tab is hidden when this feature is enabled. But it keeps hidden when this feature is disabled.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events