Info | ||
---|---|---|
| ||
This routine is available starting with SIL Engine™ 4.6.3. |
Syntax
admUpdateCustomFieldOptions(fieldName, pathToFile, charset, actionForOldFieldValues, actionForExistingFieldValues, projectKeys, issueTypes, useDefaultScheme, reorder, updateExistingOptionsValues, applyActionsOnParentOptions)
...
Note |
---|
The new options in the input file that don't already exist in the custom field's options will automatically be added to the custom field's options. |
Examples
...
icon | false |
---|---|
title | updatedoptions.txt |
...
Example 1 - Updating a Cascading Select Custom Field
For this example we will consider the following already existing options of the custom field:
Code Block |
---|
Parent1
Child1
Child2
Parent2
Child3
|
...
and the file "updateoptions.txt", that has the following contents:
Code Block |
---|
PARENT1
Child3
Child2
CHILD1
Parent2
Child4 |
Code Block |
---|
admUpdateCustomFieldOptions(fieldName"CF_CASCADE", pathToFile"updatedoptions.txt", charset"", actionForOldFieldValues, actionForExistingFieldValues, projectKeys, issueTypes, useDefaultScheme, reorder, updateExistingOptionsValues, applyActionsOnParentOptions); |
...