Skip to content

Function: getEditIssueMeta() ​

ts
function getEditIssueMeta(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  fields?: Record<string, {
   [key: string]: unknown;
     allowedValues?: Record<string, any>[];
     autoCompleteUrl?: string;
     defaultValue?: Record<string, any>;
     fieldId?: string;
     hasDefaultValue?: boolean;
     name?: string;
     operations?: string[];
     required?: boolean;
     schema?: {
      [key: string]: unknown;
        custom?: string;
        customId?: number;
        items?: string;
        system?: string;
        type?: string;
     };
  }>;
}>;

Defined in: src/server/api/issues.ts:678

Returns the meta data for editing an issue. The fields in the editmeta correspond to the fields in the edit screen for the issue. Fields not in the screen will not be in the editmeta.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ issueIdOrKey: string; }-
parameters.issueIdOrKeystringIssue id or key
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; fields?: Record<string, { [key: string]: unknown; allowedValues?: Record<string, any>[]; autoCompleteUrl?: string; defaultValue?: Record<string, any>; fieldId?: string; hasDefaultValue?: boolean; name?: string; operations?: string[]; required?: boolean; schema?: { [key: string]: unknown; custom?: string; customId?: number; items?: string; system?: string; type?: string; }; }>; }>