Info |
---|
|
This routine is available starting with SIL Engineā¢ 2.5.8. |
Syntax
admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId)
...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId[, projectTypeKey]) | Package | | Alias | | Pkg Usage | | |
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.
...
a new project, optionally offering support for category of the project
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
|
...
...
...
...
...
Yes | Project name. | description |
|
...
...
Yes | Project description. | lead |
|
...
...
Yes | Represents a valid user that should be assignable on the project. | url |
|
...
...
Yes | URL of the project. Leave blank if no URL is available. | categoryName |
|
...
...
Yes | Name of the category. | defaultIsUnassigned |
|
...
Boolean (true/false) | 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 |
|
...
...
No | Set the project type key. If it is not set, the default value is "business". |
|
...
This routine will not work for Service Desk project type. |
|
Return
...
Type
Boolean (true/false)
Returns 'true' if the project was created and 'false' if not.
...
Examples
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");
|
...
...
- Attempts to create a project with the same key or name
|
...
- as an existing project will result in an error
- Executing user must have permissions to create projects
|
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jiraproject_projectadmin_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_project_routineroutines |
---|
|