Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,7 @@ def add_worklog(
started: datetime.datetime | None = None,
user: str | None = None,
visibility: dict[str, Any] | None = None,
notify: bool=True,
) -> Worklog:
"""Add a new worklog entry on an issue and return a Resource for it.

Expand All @@ -2884,6 +2885,7 @@ def add_worklog(
visibility (Optional[Dict[str,Any]]): Details about any restrictions in the visibility of the worklog.
Example of visibility options when creating or updating a worklog.
``{ "type": "group", "value": "<string>", "identifier": "<string>"}``
notify (bool): Whether or not to send a notification to the new user. (Default: True)

Returns:
Worklog
Expand All @@ -2895,6 +2897,8 @@ def add_worklog(
params["newEstimate"] = newEstimate
if reduceBy is not None:
params["reduceBy"] = reduceBy
if not notify:
params["notifyUsers"] = "false"

data: dict[str, Any] = {}
if timeSpent is not None:
Expand Down
Loading