admUpdateProject
Syntax | admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId[, projectTypeKey]) | Package | adm |
Alias |
| Pkg Usage | admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId[, projectTypeKey]) |
Description
Updates the project properties. The project key cannot be changed, it's the only thing that identifies the project.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
pkey | String | Yes | Project key. Must exist. |
pname | String | Yes | Project name. |
description | String | Yes | Project description. |
lead | String | Yes | Represents a valid user that should be assignable on the project. |
url | String | Yes | URL of the project. Leave blank if no URL is available. |
categoryName | String | 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 | String | No | Set the project type key. |
Return Type
Boolean (true/false)
Returns 'true' if the project was updated and 'false' if not.
Examples
admUpdateProject("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 12010);admUpdateProject("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 12010, "software");You will need permissions to update the project.