@@ -32,7 +32,6 @@ def _get_paged(
32
32
flags = None ,
33
33
trailing = None ,
34
34
absolute = False ,
35
- paging_workaround = False ,
36
35
):
37
36
"""
38
37
Used to get the paged data
@@ -43,17 +42,13 @@ def _get_paged(
43
42
:param flags: string[] (default is None): The flags
44
43
:param trailing: bool (default is None): If True, a trailing slash is added to the url
45
44
:param absolute: bool (default is False): If True, the url is used absolute and not relative to the root
46
- :param paging_workaround: bool (default is False): If True, the paging is done on our own because
47
- of https://jira.atlassian.com/browse/BCLOUD-13806
48
45
49
46
:return: A generator object for the data elements
50
47
"""
51
48
52
49
if self .cloud :
53
50
if params is None :
54
51
params = {}
55
- if paging_workaround :
56
- params ["startAt" ] = 0
57
52
58
53
while True :
59
54
response = super (Jira , self ).get (
@@ -71,18 +66,15 @@ def _get_paged(
71
66
if response .get ("isLast" , False ) or len (values ) == 0 :
72
67
break
73
68
74
- if paging_workaround :
75
- params ["startAt" ] += response ["maxResults" ]
76
- else :
77
- url = response .get ("nextPage" )
78
- if url is None :
79
- break
80
- # From now on we have absolute URLs with parameters
81
- absolute = True
82
- # Params are now provided by the url
83
- params = {}
84
- # Trailing should not be added as it is already part of the url
85
- trailing = False
69
+ url = response .get ("nextPage" )
70
+ if url is None :
71
+ break
72
+ # From now on we have absolute URLs with parameters
73
+ absolute = True
74
+ # Params are now provided by the url
75
+ params = {}
76
+ # Trailing should not be added as it is already part of the url
77
+ trailing = False
86
78
else :
87
79
raise ValueError ("``_get_paged`` method is only available for Jira Cloud platform" )
88
80
0 commit comments