Skip to end of banner
Go to start of banner

admAddCustomFieldOption

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 4 Next »

Description

Adds a new custom field option to options list for the specified context. If the context does not exist, it will be created. This routine only handles custom fields of the following types: single select, multi select, radio buttons and checkboxes (otherwise throws an exception).

Parameters

Return Type

Boolean (true/false)

Returns 'true' if the option was added successfully and 'false' otherwise. If returned 'false' check the log for a detailed reason on why it failed.

Examples

Example 1

admAddCustomFieldOption("New Option", "Select List");

Add the "New Option" to the global context of custom field "Select List".

Example 2

admAddCustomFieldOption("New Option", "Select List", "TEST", "Bug");

Add the "New Option" to custom field "Select List" with context for project "TEST" and issue type "Bug".

If already exists a context for the specified project, but not for the specified issue type, the context will not be created.

See also

  • No labels