@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.
85 lines (83 loc) • 2.78 kB
text/typescript
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Attachment } from './attachment';
import type { Comment } from './comment';
import type { Document } from './document';
import type { FixVersion } from './fixVersion';
import type { Issue } from './issue';
import type { IssueLink } from './issueLink';
import type { IssueTypeDetails } from './issueTypeDetails';
import type { Priority } from './priority';
import type { ProjectComponent } from './projectComponent';
import type { Resolution } from './resolution';
import type { RichText } from './richText';
import type { StatusDetails } from './statusDetails';
import type { TimeTrackingDetails } from './timeTrackingDetails';
import type { User } from './user';
import type { UserDetails } from './userDetails';
import type { Votes } from './votes';
import type { Watchers } from './watchers';
import type { Worklog } from './worklog';
/** Key fields from the linked issue. */
export interface Fields extends Record<string, any> {
/** The estimate of how much longer working on the issue will take, in seconds. */
aggregatetimespent: number | null;
/** The assignee of the linked issue. */
assignee: UserDetails;
/** The time the issue is due. */
duedate: string | null;
/** The list of versions where the issue was fixed. */
fixVersions: FixVersion[];
lastViewed: string | null;
/** The issue parent. */
parent?: Issue;
/** The priority of the linked issue. */
priority: Priority;
/** The resolution of the issue. */
resolution: Resolution | null;
/** The time the issue was resolved at. */
resolutiondate: string | null;
/** The status of the linked issue. */
status: StatusDetails;
/** The summary description of the linked issue. */
summary: string;
/** The time that was spent working on the issue, in seconds. */
timespent: number | null;
/** The time tracking of the linked issue. */
timetracking: TimeTrackingDetails;
/** The type of the linked issue. */
issuetype?: IssueTypeDetails;
/** The type of the linked issue. */
issueType?: IssueTypeDetails;
environment: RichText | null;
issuelinks: IssueLink[];
workratio: number;
issuerestriction?: {
issuerestrictions: any;
shouldDisplay: boolean;
};
watches: Watchers;
created: string;
labels: string[];
updated: string;
components: ProjectComponent[];
timeoriginalestimate?: any;
description?: Document;
attachment: Attachment[];
creator: User;
subtasks: Issue[];
reporter: User;
comment: {
comments: Comment[];
self: string;
maxResults: number;
total: number;
startAt: number;
};
votes: Votes & { voters: never };
worklog: {
startAt: number;
maxResults: number;
total: number;
worklogs: Worklog[];
};
}