Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.19 / 2.6.11.

Syntax

admCreateCustomField(fieldName, description, fieldType, fieldSearcher, projects, issueTypes)

...

Excerpt

Creates a new custom field, offering support also for setting its context and searcher.

Parameters

Parameter name

Type

Required

Description

fieldNamestringyesCustom field name.
descriptionstringyesCustom field description (can be blank).
fieldTypestringyesCustom field type (either key or name).
fieldSearcherstringyesCustom field searcher (either key or name). If blank, the default custom field searcher for the given type will be considered.
projectsstring[]yesProjects context (project keys). If empty, global issue context will be considered.
issueTypesstring[]yesIssue types context (either names or ids). If empty, all issue types will be considered.

Return type

string

Returns the string id (customfield_xxxxx) of the newly created custom field.

...