Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

Availability

This routine is available starting with SIL Engine™ *.*.*.

Syntax

admCreateProjectWithSharedConfiguration(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId, pkeyForScheme)

admCreateProjectWithSharedConfiguration(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId, pkeyForScheme, projectTypeKey)

Description

Creates a new project, optionally offering support for category of the project.

Creates the project and configures it with the security level, workflow scheme, etc, as in another project.

After creating the project will attempt to copy the following schemes:

  • Field Configuration Scheme
  • Issue Security Scheme
  • Issue Type Scheme
  • Issue Type Screen Scheme
  • Notification Scheme
  • Permission Scheme
  • Workflow Scheme

Parameters

Parameter name

Type

Required

Description

 pkeystringyesProject key
pnamestringyesProject name.
descriptionstringyesProject description.
leadstringyesRepresents a valid user that should be assignable on the project.
urlstringyesURL of the project. Leave blank if no URL is available.
categoryNamestringyesName 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.
pkeyForSchemestringyesProject key whose scheme you want to use.
projectTypeKeystringno

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

Returns 'true' if the project was created and scheme was applied. In other case returns 'false'.

Example

Example 1

admCreateProjectWithSharedConfiguration("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 0, "OLYMP");

Example 2

admCreateProjectWithSharedConfiguration("T3", "Thunderbolt3", "Three thunderbolts in a single hole", "zeus", "http://thunderbolts.olimpus.gr", "PUBLIC", false, 0, "OLYMP", "business");

Duplicates projects

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.

  • No labels