Skip to content

Function: getCustomFieldOptions() ​

ts
function getCustomFieldOptions(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  options?: object[];
  total?: number;
}>;

Defined in: src/server/api/issueFields.ts:61

Returns custom field's options defined in a given context composed of projects and issue types.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ customFieldId: string; issueTypeIds?: string; maxResults?: string; page?: string; projectIds?: string; query?: string; sortByOptionName?: string; useAllContexts?: string; }-
parameters.customFieldIdstringThe ID of the custom field.
parameters.issueTypeIds?stringA list of issue type IDs in a context.
parameters.maxResults?stringThe maximum number of results to return.
parameters.page?stringThe page of options to return.
parameters.projectIds?stringA list of project IDs in a context.
parameters.query?stringA string used to filter options.
parameters.sortByOptionName?stringFlag to sort options by their names.
parameters.useAllContexts?stringFlag to fetch all options regardless of context, project IDs, or issue type IDs.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; options?: object[]; total?: number; }>