@esm-js/jira.js
Version:
A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.
26 lines (24 loc) • 1.2 kB
text/typescript
import type { Document } from './document';
import type { EntityProperty } from './entityProperty';
import type { Fields } from './fields';
import type { HistoryMetadata } from './historyMetadata';
import type { IssueTransition } from './issueTransition';
/** Details of an issue update request. */
export interface IssueUpdateDetails {
transition?: IssueTransition;
/**
* List of issue screen fields to update, specifying the sub-field to update and its value for each field. This field
* provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are
* required, use `update`. Fields included in here cannot be included in `update`.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fields?: Partial<Omit<Fields, 'description'> & { description: string | Document }> | any;
/**
* A Map containing the field field name and a list of operations to perform on the issue screen field. Note that
* fields included in here cannot be included in `fields`.
*/
update?: unknown;
historyMetadata?: HistoryMetadata;
/** Details of issue properties to be add or update. */
properties?: EntityProperty[];
}