Skip to content

Commit

Permalink
feat: get issue worklog
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegt0rr committed Aug 27, 2023
1 parent c1bd390 commit 440fcea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions yatracker/tracker/categories/worklogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,16 @@ async def delete_worklog(
uri=f"/issues/{issue_id}/worklog/{worklog_id}",
)
return True

async def get_issue_worklog(self, issue_id: str) -> list[Worklog]:
"""Get issue worklog records.
Source:
https://cloud.yandex.ru/docs/tracker/concepts/issues/issue-worklog
"""
data = await self._client.request(
method="PATCH",
uri=f"/issues/{issue_id}/worklog",
)
decoder = self._get_decoder(list[Worklog])
return decoder.decode(data)

0 comments on commit 440fcea

Please sign in to comment.