Skip to end of banner
Go to start of banner

admDeleteCustomFieldOption

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

Description

Delete an option from the options list for the specified context. This routine only handles custom fields of the following type: single select, multi select, radio buttons and checkboxes (otherwise throws an exception).

Parameters

Return Type

Boolean (true/false)

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

Examples

Example 1

admDeleteCustomFieldOption("Option", "Select List");

Deletes the "Option" from the global context of custom field "Select List".

Example 2

admDeleteCustomFieldOption("Option", "Select List", "TEST", "Task");

Deletes the "Option" from custom field "Select List" with context for project "TEST" and issue type "Task".

This routine does not delete the context, it only deletes the specified option.

See also

  • No labels