File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -4111,12 +4111,12 @@ def tempo_timesheets_get_worklogs(
4111
4111
return self .get (url , params = params )
4112
4112
4113
4113
# noinspection PyIncorrectDocstring
4114
- def tempo_4_timesheets_find_worklogs (self , ** params ):
4114
+ def tempo_4_timesheets_find_worklogs (self , date_from = None , date_to = None , ** params ):
4115
4115
"""
4116
4116
Find existing worklogs with searching parameters.
4117
4117
NOTE: check if you are using correct types for the parameters!
4118
- :param from : string From Date
4119
- :param to : string To Date
4118
+ :param date_from : string From Date
4119
+ :param date_to : string To Date
4120
4120
:param worker: Array of strings
4121
4121
:param taskId: Array of integers
4122
4122
:param taskKey: Array of strings
@@ -4138,6 +4138,11 @@ def tempo_4_timesheets_find_worklogs(self, **params):
4138
4138
:param offset: integer
4139
4139
"""
4140
4140
4141
+ if date_from :
4142
+ params ["from" ] = date_from
4143
+ if date_to :
4144
+ params ["to" ] = date_to
4145
+
4141
4146
url = "rest/tempo-timesheets/4/worklogs/search"
4142
4147
return self .post (url , data = params )
4143
4148
Original file line number Diff line number Diff line change @@ -539,8 +539,8 @@ TEMPO
539
539
# Look at the tempo docs for additional information:
540
540
# https://www.tempo.io/server-api-documentation/timesheets#operation/searchWorklogs
541
541
# NOTE : check if you are using correct types for the parameters!
542
- # :param from : string From Date
543
- # :param to : string To Date
542
+ # :param date_from : string From Date
543
+ # :param date_to : string To Date
544
544
# :param worker: Array of strings
545
545
# :param taskId: Array of integers
546
546
# :param taskKey: Array of strings
@@ -560,7 +560,7 @@ TEMPO
560
560
# :param pageNo: integer
561
561
# :param maxResults: integer
562
562
# :param offset: integer
563
- jira.tempo_4_timesheets_find_worklogs(** params)
563
+ jira.tempo_4_timesheets_find_worklogs(date_from = None , date_to = None , ** params)
564
564
565
565
# :PRIVATE:
566
566
# Get Tempo timesheet worklog by issue key or id.
You can’t perform that action at this time.
0 commit comments