If your Jira server log is reporting this error:

No permission scheme is associated with project ‘XXXX’

Captura de pantalla 2018-11-12 a las 17.35.48

Try to launch a Groovy script like this to fix the error.

Remember to set the PROJECT_KEY of the project affected, and a PERMISSION_SCHEME existent in your Jira.

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.permission.PermissionSchemeManager;
import com.atlassian.jira.scheme.SchemeManager;
import com.atlassian.jira.scheme.Scheme;

def prList = ComponentAccessor.getProjectManager().getProjectByCurrentKey("PROJECT_KEY")
PermissionSchemeManager permissionSchemeManager = ComponentAccessor.getPermissionSchemeManager();
Scheme permissionScheme = permissionSchemeManager.getSchemeObject("PERMISSION_SCHEME");
permissionSchemeManager.addSchemeToProject(prList, permissionScheme);

We recommed to use plugins like Adaptavist Scriptrunner or MyGroovy to launch this.

Trick by MrAddon

Posted by:.

2 replies on “No permission scheme is associated with project ‘XXXX’ (QuickFix for Jira with Groovy script)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s