Info |
---|
|
This routine is available starting with SIL Engine™ 4.8.0.8. 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 | admAppendProjectToCustomFieldConfigurationScheme(fieldName, existingProjectKey, projectKeyToAppend, ignoreExistingContextScheme) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jiracustomfield_fieldadmin_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_attachment_routineroutines |
---|
|