Add Worklog

This endpoint allows you to add a new worklog. One important thing you should notice that registered worklog author is “WorklogPRO App” itself. But our app will handle this situation and display author as the

Arguments:

[WorklogRequest] - Parameters for registering new worklog.

Returns:

[PagedIssues] - A page of issues including worklogs and some basic fields.

Example Mutation

mutation { addWorklog( worklogRequest: { authorAccountId: "333555:43ab343-ffff-4d01-8c19-7965a544b3", issueId: "10405", timeSpent: "2h", started: "2024-01-17T12:34:00.000+0000", account: "aba329b9-acba-4b84-b06b-c207e2077241" } ) { worklog { issueId, id, timeSpent comment, author { accountId, displayName }, updateAuthor { displayName }, account { id, name } attributes { id, name, value, valueName } } } }

Example Response

{ "data": { "addWorklog": { "worklog": { "issueId": "10405", "id": "98519", "timeSpent": "2h", "comment": "", "author": { "accountId": "333555:43ab343-ffff-4d01-8c19-7965a544b3", "displayName": "Deniz Oğuz" }, "updateAuthor": { "displayName": "WorklogPRO - Timesheets for Jira" }, "account": { "id": "aba329b9-acba-4b84-b06b-c207e2077241", "name": "2023-1" }, "attributes": null } } } }

Types

WorklogRequest

Parameters for registering a new worklog.

input WorklogRequest { issueId: String! authorAccountId: String! started: String! timeSpent: String! comment: String adjustEstimate: AdjustEstimateOptions newEstimate: String reduceBy: String account: String attributes: [WorklogAttributeInput] overrideEditableFlag: Boolean notifyUsers: Boolean }

 

WorklogAttributeInput

Key/Value pair for worklog attribute id and value.