interface AddWorklog {
    adjustEstimate?: string;
    author?: Version3.Version3Models.UserDetails;
    comment?: string | Document;
    created?: string;
    expand?: string | string[] | "properties"[];
    id?: string;
    issueId?: string;
    issueIdOrKey: string;
    newEstimate?: string;
    notifyUsers?: boolean;
    overrideEditableFlag?: boolean;
    properties?: Version3.Version3Models.EntityProperty[];
    reduceBy?: string;
    self?: string;
    started?: string;
    timeSpent?: string;
    timeSpentSeconds?: number;
    updateAuthor?: Version3.Version3Models.UserDetails;
    updated?: string;
    visibility?: Version3.Version3Models.Visibility;
}

Hierarchy

Properties

adjustEstimate?: string

Defines how to update the issue's time estimate, the options are:

  • new Sets the estimate to a specific value, defined in newEstimate.
  • leave Leaves the estimate unchanged.
  • manual Reduces the estimate by amount specified in reduceBy.
  • auto Reduces the estimate by the value of timeSpent in the worklog.
comment?: string | Document

A comment about the worklog in Atlassian Document Format. Optional when creating or updating a worklog.

created?: string

The datetime on which the worklog was created.

expand?: string | string[] | "properties"[]

Use expand to include additional information about work logs in the response. This parameter accepts properties, which returns worklog properties.

id?: string

The ID of the worklog record.

issueId?: string

The ID of the issue this worklog is for.

issueIdOrKey: string

The ID or key the issue.

newEstimate?: string

The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new.

notifyUsers?: boolean

Whether users watching the issue are notified by email.

overrideEditableFlag?: boolean

Whether the worklog entry should be added to the issue even if the issue is not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with Administer Jira global permission can use this flag.

Details of properties for the worklog. Optional when creating or updating a worklog.

reduceBy?: string

The amount to reduce the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m). For example, 2d. Required when adjustEstimate is manual.

self?: string

The URL of the worklog item.

started?: string

The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.

timeSpent?: 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.

timeSpentSeconds?: number

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.

updated?: string

The datetime on which the worklog was last updated.