YouTrack InCloud 2019.1 Help

Operations with Specific IssueWorkItem

Resource

/api/issues/{issueID}/timeTracking/workItems/{itemID}

Returned entity

IssueWorkItem. For the description of the entity attributes, see Supported Fields section.

Supported methods

IssueWorkItem attributes

Time tracking settings of the project.

This table describes attributes of the IssueWorkItem entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

author

User

The user to whom the work is attributed in the work item. Can be null.

creator

User

The user who added the work item to the issue. Read-only. Can be null.

text

String

The work item description. Can be null.

textPreview

String

Parsed preview of the description. Read-only.

type

WorkItemType

The work item type. Can be null.

created

Long

The date when the work item was created. Can be null.

updated

Long

The date when the work item was last updated. Can be null.

duration

DurationValue

The duration of the work item.

date

Long

The date and time that is assigned to the work item. Stored as a Unix timestamp in UTC. The time part is set to midnight for the current date.

issue

Issue

Stores attributes of the issue to which the work item is attached. Read-only.

usesMarkdown

Boolean

Stores the format of the comment text. When true, the comment is processed as Markdown formatted text. Otherwise, the comment is processed as YouTrack Wiki formatted.

Read a Specific IssueWorkItem

Request syntax

GET /api/issues/{issueID}/timeTracking/workItems/{itemID}?{fields}

Request parameters

Parameter

Type

Description

fields

string

A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Update a Specific IssueWorkItem

Request syntax

POST /api/issues/{issueID}/timeTracking/workItems/{itemID}?{fields}

Request parameters

Parameter

Type

Description

fields

string

A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the entityID is returned.

Delete a Specific IssueWorkItem

Request syntax

DELETE /api/issues/{issueID}/timeTracking/workItems/{itemID}

Request parameters

Parameter

Type

Description

Last modified: 17 May 2019