CreateProjectFromTemplate exception

Mallela Narender Reddy February 8, 2012

Hi

assignee = (User) coreInfoIssue
.getCustomFieldValue(componentManager
.getCustomFieldManager()
.getCustomFieldObjectByName(
CnBWorkflowConstants.CUSTOM_FIELD_CHIEF_PROJECT_MANAGER));

project = ProjectUtils.createProject(EasyMap.build("key",
newKeyValue, "lead", assignee, "name", newKeyValue
+ " " + issue.getSummary(), "description",
issue.getDescription()));

When ever i tried to create project as an Admin i am able to create the project but when ever i am trying to create a project from template as a user i am getting the following exception.....



2012-02-09 12:40:21,910 http-9090-8 ERROR kalyan 760x153x1 1azns0t 127.0.0.1 /secure/WorkflowUIDispatcher.jspa [workflow.function.createproject.CreateProjectFromTemplate] CreateException Occurred :com.atlassian.jira.exception.CreateException: Errors: {}
Error Messages: [You must have global administrator rights in order to modify projects.]

I should not give the admin permission to the user .so pls give me a solution

Regards
Naren

1 answer

0 votes
Oğuz Kağan Aslan September 12, 2012

Hi Naren,

You can use this plugin (https://marketplace.atlassian.com/plugins/com.topmanage.jiraplugins) to create a project from template.

Best Regards,

Oğuz Kağan Aslan

Suggest an answer

Log in or Sign up to answer