2017-06-16 183 views
1

JIRA的REST API搜索不符合maxResults参数。JIRA REST API JQL查询问题与maxResults

curl -o lambrusco.txt -k -D- -u admin:admin -X GET -H "Content-Type: application/json" https://jira.domain.com/rest/api/2/search?jql=assignee=blackpearl&startAt=0&maxResults=4

不管是什么maxResults是,它总是返回50结果。

输出: {"expand":"schema,names","startAt":0,"maxResults":50,"total":61,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields","id":"15588","self": ...}

缺少什么我在这里?

回答

0

您的请求看起来很好。这里是例如在官方Atlassian的JIRA,工作正常:

+0

使用curl它从来没有给出想要的结果,但是当我使用Php curl来获取数据时,它工作正常。 – theblackpearl

0

它看起来像,它的相关REST API Bug

+0

奇怪的是,我得到它与Php卷曲,maxResults = x将返回x结果。我真的很想知道curl请求有什么问题。 – theblackpearl