Skip to content

Atlassian: Get issue worklogs

Atlassian issueWorklogs.getIssueWorklog: arguments, response, policy and SDK examples.

← Issue worklogs operations · Get started

Operation atlassian.getissueworklog

Provider route: GET /{cloudId}/rest/api/3/issue/{issueIdOrKey}/worklog. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["issueWorklogs"]["getIssueWorklog"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.issueWorklogs.getIssueWorklog(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.issue_worklogs.get_issue_worklog(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
path.issueIdOrKeystringRequired within parent
queryobjectOptionalAdditional keys: not allowed
query.startAtintegerOptionalDefault: 0
Format: int64
query.maxResultsintegerOptionalDefault: 5000
Format: int32
query.startedAfterintegerOptionalFormat: int64
query.startedBeforeintegerOptionalFormat: int64
query.expandstringOptionalDefault:

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get issue worklogs — response body

Referenced models: Get issue worklogs — response body

1 more schema is linked from the tables above, on the schema pages.

Get issue worklogs — response body
FieldTypePresenceDescription and constraints
$objectRootPaginated list of worklog details
Additional keys: allowed
maxResultsJSONOptional
maxResults (anyOf 1)JSONAlternative
maxResults (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of results that could be on the page.
Format: int32
Read only: true
maxResults (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
maxResults (anyOf 2)nullAlternative
startAtJSONOptional
startAt (anyOf 1)JSONAlternative
startAt (anyOf 1) (anyOf 1)integerAlternativeThe index of the first item returned on the page.
Format: int32
Read only: true
startAt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
startAt (anyOf 2)nullAlternative
totalJSONOptional
total (anyOf 1)JSONAlternative
total (anyOf 1) (anyOf 1)integerAlternativeThe number of results on the page.
Format: int32
Read only: true
total (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total (anyOf 2)nullAlternative
worklogsJSONOptional
worklogs (anyOf 1)arrayAlternativeList of worklogs.
Read only: true
worklogs (anyOf 1)[]ModelEach itemExpand Add worklog — response body
worklogs (anyOf 2)nullAlternative

Referenced models: Add worklog — response body

Add worklog — response body
FieldTypePresenceDescription and constraints
$objectRootDetails of a worklog.
Additional keys: allowed
authorJSONOptional
author (anyOf 1)ModelAlternativeExpand Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone
Details of the user who created the worklog.
Read only: true
author (anyOf 2)nullAlternative
commentJSONOptional
comment (anyOf 1)JSONAlternativeA 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.
comment (anyOf 2)nullAlternative
createdJSONOptional
created (anyOf 1)JSONAlternative
created (anyOf 1) (anyOf 1)stringAlternativeThe datetime on which the worklog was created.
Read only: true
created (anyOf 1) (anyOf 2)integerAlternative
created (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the worklog record.
Read only: true
id (anyOf 2)nullAlternative
issueIdJSONOptional
issueId (anyOf 1)stringAlternativeThe ID of the issue this worklog is for.
Read only: true
issueId (anyOf 2)nullAlternative
propertiesJSONOptional
properties (anyOf 1)arrayAlternativeDetails of properties for the worklog. Optional when creating or updating a worklog.
properties (anyOf 1)[]ModelEach itemExpand Get user property — response body
properties (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL of the worklog item.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
startedJSONOptional
started (anyOf 1)JSONAlternative
started (anyOf 1) (anyOf 1)stringAlternativeThe datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.
started (anyOf 1) (anyOf 2)integerAlternative
started (anyOf 2)nullAlternative
timeSpentJSONOptional
timeSpent (anyOf 1)stringAlternativeThe 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 (anyOf 2)nullAlternative
timeSpentSecondsJSONOptional
timeSpentSeconds (anyOf 1)JSONAlternative
timeSpentSeconds (anyOf 1) (anyOf 1)integerAlternativeThe 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.
Format: int64
timeSpentSeconds (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
timeSpentSeconds (anyOf 2)nullAlternative
updateAuthorJSONOptional
updateAuthor (anyOf 1)ModelAlternativeExpand Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone
Details of the user who last updated the worklog.
Read only: true
updateAuthor (anyOf 2)nullAlternative
updatedJSONOptional
updated (anyOf 1)JSONAlternative
updated (anyOf 1) (anyOf 1)stringAlternativeThe datetime on which the worklog was last updated.
Read only: true
updated (anyOf 1) (anyOf 2)integerAlternative
updated (anyOf 2)nullAlternative
visibilityJSONOptional
visibility (anyOf 1)ModelAlternativeExpand Add comment — response body — visibility The group or role to which this item is visible
Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog.
visibility (anyOf 2)nullAlternative

Referenced models: Get user property — response body, Add comment — response body — author account Id, account Type, active, avatar Urls, display Name, email Address, key, name, self, time Zone, Add comment — response body — visibility The group or role to which this item is visible

Get user property — response body
FieldTypePresenceDescription and constraints
$objectRootAn entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
keyJSONOptional
key (anyOf 1)stringAlternativeThe key of the property. Required on create and update.
key (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)JSONAlternativeThe value of the property. Required on create and update.
value (anyOf 2)nullAlternative
Add comment — response body — visibility The group or role to which this item is visible
FieldTypePresenceDescription and constraints
$objectRootThe group or role to which this item is visible.
Additional keys: allowed
identifierJSONOptional
identifier (anyOf 1)JSONAlternative
identifier (anyOf 1) (anyOf 1)stringAlternativeThe ID of the group or the name of the role that visibility of this item is restricted to.
identifier (anyOf 1) (anyOf 2)nullAlternative
identifier (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeWhether visibility of this item is restricted to a group or role.
Known values: group, role
type (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)stringAlternativeThe name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group use `identifier`.
value (anyOf 2)nullAlternative
Get user — response body — avatar Urls 16x16, 24x24, 32x32, 48x48
FieldTypePresenceDescription and constraints
$objectRoot
16x16JSONOptional
16x16 (anyOf 1)stringAlternativeThe URL of the item's 16x16 pixel avatar.
Format: uri
16x16 (anyOf 2)nullAlternative
24x24JSONOptional
24x24 (anyOf 1)stringAlternativeThe URL of the item's 24x24 pixel avatar.
Format: uri
24x24 (anyOf 2)nullAlternative
32x32JSONOptional
32x32 (anyOf 1)stringAlternativeThe URL of the item's 32x32 pixel avatar.
Format: uri
32x32 (anyOf 2)nullAlternative
48x48JSONOptional
48x48 (anyOf 1)stringAlternativeThe URL of the item's 48x48 pixel avatar.
Format: uri
48x48 (anyOf 2)nullAlternative

SDK function policy ID: atlassian.getissueworklog. Catalog operation: getissueworklog. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["read:jira-work"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.