/** * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { EntityProperty, UserDetails, Visibility } from './'; /** * Details of a worklog. * @export * @interface Worklog */ export interface Worklog { [key: string]: object | any; /** * The datetime on which the worklog was last updated. * @type {Date} * @memberof Worklog */ readonly updated?: Date; /** * The ID of the issue this worklog is for. * @type {string} * @memberof Worklog */ readonly issueId?: string; /** * Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog. * @type {Visibility} * @memberof Worklog */ visibility?: Visibility; /** * Details of the user who last updated the worklog. * @type {UserDetails} * @memberof Worklog */ readonly updateAuthor?: UserDetails; /** * Details of properties for the worklog. Optional when creating or updating a worklog. * @type {Array} * @memberof Worklog */ properties?: Array; /** * The ID of the worklog record. * @type {string} * @memberof Worklog */ readonly id?: 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. * @type {string} * @memberof Worklog */ timeSpent?: string; /** * A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog. * @type {object} * @memberof Worklog */ comment?: object; /** * The datetime on which the worklog was created. * @type {Date} * @memberof Worklog */ readonly created?: Date; /** * Details of the user who created the worklog. * @type {UserDetails} * @memberof Worklog */ readonly author?: UserDetails; /** * The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog. * @type {Date} * @memberof Worklog */ started?: Date; /** * 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. * @type {number} * @memberof Worklog */ timeSpentSeconds?: number; /** * The URL of the worklog item. * @type {string} * @memberof Worklog */ readonly self?: string; } export declare function WorklogFromJSON(json: any): Worklog; export declare function WorklogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Worklog; export declare function WorklogToJSON(value?: Worklog): any;