UNPKG

@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.

41 lines (39 loc) 1.56 kB
import type { EntityProperty } from './entityProperty'; import type { UserDetails } from './userDetails'; import type { Visibility } from './visibility'; /** Details of a worklog. */ export interface Worklog { author?: UserDetails; /** A comment about the worklog. Optional when creating or updating a worklog. */ comment?: string; /** The datetime on which the worklog was created. */ created?: string; /** The ID of the worklog record. */ id?: string; /** The ID of the issue this worklog is for. */ issueId?: string; /** Details of properties for the worklog. Optional when creating or updating a worklog. */ properties?: EntityProperty[]; /** The URL of the worklog item. */ self?: string; /** * The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a * worklog. */ started?: string; /** * The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Required when creating a * worklog if `timeSpentSeconds` isn't provided. Optional when updating a worklog. Cannot be provided if * `timeSpentSecond` is provided. */ timeSpent?: string; /** * The time in seconds spent working on the issue. Required when creating a worklog if `timeSpent` isn't provided. * Optional when updating a worklog. Cannot be provided if `timeSpent` is provided. */ timeSpentSeconds?: number; updateAuthor?: UserDetails; /** The datetime on which the worklog was last updated. */ updated?: string; visibility?: Visibility; }