我已经搜索了很多页面,但我没有找到任何有效的解决方案来显示以下查询中的所有值:
curl -u $c_user:$c_pass -X GET -H "Content-Type: application/json" https://jira.mysite.eu/rest/api/2/search?jql=project%20%3D%20%22My%20IT%20Project%22%20AND%20status%20%3D%20%22To%20Acceptance%22
效果很好,但只显示第一个 50个结果。我尝试了不同的方法,但它们都不能正常工作,例如:
curl -u $c_user:$c_pass -X GET -H "Content-Type: application/json" https://jira.mysite.eu/rest/api/2/search?jql=project%20%3D%20%22My%20IT%20Project%22%20AND%20status%20%3D%20%22To%20Acceptance%22&startAt=0&maxResults=500
或
curl -u $c_user:$c_pass -X GET -H "Content-Type: application/json" https://jira.mysite.eu/rest/api/2/search?maxResults=500?jql=project%20%3D%20%22My%20IT%20Project%22%20AND%20status%20%3D%20%22To%20Acceptance%22
我做错了什么?
答案 0 :(得分:0)
检查'jira.search.views.default.max'Jira属性, 来自搜索'maxResults'的文档: “要返回的最大问题数(默认为50)。最大允许值由JIRA属性'jira.search.views.default.max'决定。如果指定的值高于此数字,则搜索结果将被截断。“ https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/?_ga=2.202487186.20999375.1527529030-971685556.1498061141#api/2/search-search