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 | admDeleteCustomFieldOptions(fieldName, optionsIds[, projectIssueTypesNames]) | Package | adm | Alias | | Pkg Usage | delCFOptions(fieldName, optionsIds[, projectIssueTypesNames]) | |
Description
Excerpt |
---|
|
Delete options with the provided ids from the custom field. |
Deletes options with the provided ids from the custom field. This routine only handles custom fields of the following types: single select, multi select, radio buttons and checkboxes.
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 of custom field. | optionsIds | String[] | Yes | Ids of the options to be deleted. | projectIssueTypesNames | JProjectIssueTypes [] | No | An array of JProjectIssueTypes structures, representing project keys/issue types mappings. (The contexts from which to delete the options) | |
Return Type
boolean
The returned value has no meaning.
Example
Example
Deletes the option with id 10080 from checkbox custom field, using the context for project with key TP and issue types Bug and Task.
Code Block |
---|
|
JProjectIssueTypes[] projectIssueTypesNames;
JProjectIssueTypes map;
map.projectKey = "TP";
map.issueTypesNames = {"Task", "Bug"};
projectIssueTypesNames = arrayAddElement(projectIssueTypesNames, map);
return admDeleteCustomFieldOptions("checkbox", "10080", projectIssueTypesNames); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "customfield_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|