This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 63cfc412d fix: jira remote scope api does not return nextPageToken
(#6709)
63cfc412d is described below
commit 63cfc412d40bbcbe6a6e30362f74d4f2b6d04b22
Author: Klesh Wong <[email protected]>
AuthorDate: Fri Dec 29 17:54:57 2023 +0800
fix: jira remote scope api does not return nextPageToken (#6709)
---
backend/plugins/jira/api/remote_api.go | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/backend/plugins/jira/api/remote_api.go
b/backend/plugins/jira/api/remote_api.go
index aa4212a3a..3e1e820eb 100644
--- a/backend/plugins/jira/api/remote_api.go
+++ b/backend/plugins/jira/api/remote_api.go
@@ -44,7 +44,7 @@ func queryJiraAgileBoards(
err errors.Error,
) {
if page.MaxResults == 0 {
- page.MaxResults = 100
+ page.MaxResults = 50
}
res, err := apiClient.Get("agile/1.0/board", url.Values{
"maxResults": {fmt.Sprintf("%v", page.MaxResults)},
@@ -77,6 +77,13 @@ func queryJiraAgileBoards(
})
}
+ if !resBody.IsLast {
+ nextPage = &JiraRemotePagination{
+ MaxResults: page.MaxResults,
+ StartAt: page.StartAt + page.MaxResults,
+ }
+ }
+
return
}