Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admDeleteCustomFieldOption(option, fieldName[,

projectKey

projectKeys,

issueType

issueTypes])

Package

adm

Alias

Pkg Usage

delCFOption(option, fieldName[,

projectKey

projectKeys,

issueType

issueTypes])

Description

Excerpt
hiddentrue

Delete an option from the options list for the specified context.

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).

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

option

String

Yes

Option to be deleted.

fieldName

String

Yes

Name of custom field.

projectKey

projectKeys

String []

No

Project

key

keys.

issueType

issueTypes

String []

No

Issue

type

types.

Return Type

Boolean (true/false)

...

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

Note

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

Example 3

Code Block
admDeleteCustomFieldOption("Option", "Select List", {"TEST1", "TEST2"}, {"Task", "Story"});

Deletes the "Option" from custom field "Select List" with context for projects "TEST1", “TEST2” (must be an uniquely identified context) and issue types "Task", “Story”.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "customfield_admin_routine" and space = currentSpace ( )
labelsarray_routines