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

admAddCustomFieldOption(option, fieldName[,

projectKey

projectKeys,

issueType

issueTypes])

Package

adm

Alias

Pkg Usage

addCFOption(option, fieldName[,

projectKey

projectKeys,

issueType

issueTypes])

Description

Excerpt
hiddentrue

Adds a new custom field option to options list for the specified context. If the context does not exist, it will be created.

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

...

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

Parameter name

Type

Required

Description

option

String

Yes

Option to add.

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)

...

Code Block
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".

Note

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

See also

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