Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available since katl-commons starting with SIL Engine™ 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

 pkeystringyes
The project
Project key
pnamestringyes
The  project
Project name.
descriptionstringyes
The project
Project description.
leadstringyesRepresents a valid user that should be assignable on the project.
urlstringyes
The
URL of the project. Leave blank if no URL is available.
categoryNamestringyes
The name
Name of the category.
defaultIsUnassignedbooleanyesSet it to 'true' if you don't want to assign issues to the project lead above.
avatarIdnumericyesSet it to a negative number or zero for the default avatar id. Otherwise, you need to choose a valid avatar id.
projectTypeKeystringno

Set the project type key. If it is not set, the default value is "business".

Note

This routine will not work for Service Desk project type.

Return type

...

boolean

True Returns 'true' if the project was created , and 'false' if not

...

.

Example

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
titleDuplicates projects

It doesn't check if a project with the same key or name already exists. So far, JIRA 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)
showLabelsfalse
showSpacefalse
cqllabel = "jira_project_routine"
labelsjira_project_routine