Skip to content

Commit 73c0648

Browse files
committed
Adding support for expand parameter to worklog fetches
1 parent ef10e1a commit 73c0648

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jira/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,17 +2770,18 @@ def worklogs(self, issue: str | int) -> list[Worklog]:
27702770
return worklogs
27712771

27722772
@translate_resource_args
2773-
def worklog(self, issue: str | int, id: str) -> Worklog:
2773+
def worklog(self, issue: str | int, id: str, expand: str | None=None) -> Worklog:
27742774
"""Get a specific worklog Resource from the server.
27752775
27762776
Args:
27772777
issue (Union[str, int]): ID or key of the issue to get the worklog from
27782778
id (str): ID of the worklog to get
2779+
expand (Optional[str]): extra information to fetch inside each resource
27792780
27802781
Returns:
27812782
Worklog
27822783
"""
2783-
return self._find_for_resource(Worklog, (issue, id))
2784+
return self._find_for_resource(Worklog, (issue, id), expand=expand)
27842785

27852786
@translate_resource_args
27862787
def add_worklog(

0 commit comments

Comments
 (0)