Versions Compared

Key

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


This routine is available starting with SIL Engine™ 4.8.0.8.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admAppendProjectToCustomFieldConfigurationScheme(fieldName, existingProjectKey, projectKeyToAppend, ignoreExistingContextScheme)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Appends a project to an existing Configuration Scheme of a Custom field for a given project.

Appends a project to an existing Configuration Scheme of a Custom field for a given project. The given project should already have a configuration.

...

The project key to be appended should not belong to any config for that field.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

fieldName

...

String

Yes

Name custom field id that has a field configuration.

existingProjectKey

...

String

Yes

The project that appears in one of the the custom field configurations, for the given custom field.

projectKeyToAppend

...

String

Yes

The project that does not appear in any configuration for the given custom field, and will be appended to the configuration where the existingProjectKey appears.

ignoreExistingContextScheme

...

Boolean (true/false)

Yes

If this flag is set to false, and there is already a configuration for the given custom field/project pair, the project will not be added to the config for the existingProjectKey.

...

If this flag is set to true, and a configuration for the project already exists, the project will be moved from it's current scheme to the existingProjectKey config scheme.

...


NOTE: the current scheme can also be the global context scheme.

Return

...

Type

boolean Boolean (true/false)

Returns 'true' if the project was added to the list of projects in the field configuration that already contains the the existingProjectKey.

...

Example

...

Example 1: The following line of code will add (append) project "PRJ2" to the custom field configuration for the "CF_CASCADE" field that contains the "PRJ1" project key.

Code Block
admAppendProjectToCustomFieldConfigurationScheme("CF_CASCADE", "PRJ1", "PRJ2", true);

Result:

...

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jiracustomfield_fieldadmin_routine" and space = currentSpace ( )
labelsjiraarray_attachment_routineroutines