Skip to end of banner
Go to start of banner

admGetCustomFieldOptions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Availability

This routine is available starting with SIL Engine™ 4.6.3.

Syntax

admGetCustomFieldOptions(fieldName, projectKeys, issueTypes)

Description

Retrieves the option list of a custom field for the specified context (projects and issue types).

All parameters are required, but if the project keys and issue types arrays are not empty, the global context is going to be used.

Each option will reside on a separate line. In case of cascade selects, the child options will be prefixed with a space character.
This routine only handles custom fields of the following types: single select, multi select, radio buttons, checkboxes and cascade selects.


Parameters

Parameter name

Type

Required

Description

fieldNamestringYesName of custom field.
projectKeysstring arrayYes (can be empty)Project keys.
issueTypesstring arrayYes (can be empty)Issue types.

Return type

string

Returns a string representing the options of the specified custom field.

Example

Example 1

admGetCustomFieldOptions("CF_CASCADE", {}, {});

Get the options of the "CF_CASCADE" custom field, using the global context.

Example 2

admGetCustomFieldOptions("CF_SELECT", {"PRJ1", "PRJ2"}, {"Bug", "Task"});

Get the options of the "CF_SELECT" custom field, using the context for projects "PRJ1" and "PRJ2" and issue types "Bug" and "Task".

See also


  • No labels