...
Info | ||
---|---|---|
| ||
This routine is available since starting with katl-commons 2.5.8. |
Syntax
...
admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId)
Since Starting with version 3.1.0
admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId, projectTypeKey)
Description
...
Excerpt |
---|
Creates a new project, optionally offering support for category of the project |
Creates the project and configures it with the default security level, default workflow scheme, etc.
Parameters
...
Parameter name | Type | Required | Description |
---|---|---|---|
pkey | string | yes | The project key |
pname | string | yes | The project name. |
description | string | yes | The project description. |
lead | string | yes | Represents a valid user that should be assignable on the project |
url | string | yes | The URL of the project. Leave blank if no URL is available |
categoryName | string | yes | The name of the category |
defaultIsUnassigned | boolean | yes | Set it to true if you don't want to assign issues to the project lead above |
avatarId | numeric | yes | Set it to a negative number or zero for the default avatar id. Otherwise, you need to choose a valid avatar id. |
projectTypeKey | string | no | Set the project type key. If it is not set, the default value is "business". |
Return type
...
boolean
True if the project was created, false if not
...
Example 1
Code Block |
---|
admCreateProject("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 0); |
...
Example 2
Code Block |
---|
admCreateProject("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 0, "business"); |
...
Note | ||
---|---|---|
| ||
It doesn't check if a project with the same key or name already exists. So far, JIRA controller code allows the project version creation action. You will need permissions to create a project. |
See also
...
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|