diff --git a/jira/client.py b/jira/client.py index b23aff2de..c43be5020 100644 --- a/jira/client.py +++ b/jira/client.py @@ -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. @@ -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": "", "identifier": ""}`` + notify (bool): Whether or not to send a notification to the new user. (Default: True) Returns: Worklog @@ -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: