[英]StartIndex or Offset attribute for jira xml export
I try to export jira issues in XML. 我尝试以XML导出jira问题。
This page https://issues.apache.org/jira/browse/ZOOKEEPER-2064?jql=issuetype%20%3D%20Bug%20AND%20status%20%3D%20Resolved%20AND%20resolution%20%3D%20Fixed contains the issuetype
, status
and resolution
attributes. 此页面https://issues.apache.org/jira/browse/ZOOKEEPER-2064?jql=issuetype%20%3D%20Bug%20AND%20status%20%3D%20Resolved%20AND%20resolution%20%3D%20Fixed contains
issuetype
, status
和resolution
属性。
If I click on export XML I'll be directed to https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=issuetype+%3D+Bug+AND+status+%3D+Resolved+AND+resolution+%3D+FixedtempMax=100 where my attributes have been saved and FixedtempMax=100
has been added. 如果我单击导出XML,我将被定向到https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=issuetype+%3D+Bug+AND+ status +%3D + Resolved + AND + resolution +%3D + FixedtempMax = 100 ,其中已保存我的属性,并添加了
FixedtempMax=100
。 FixedtempMax=100
controls how many item you'll get and if you try to increase FixedtempMax
, you'll get a 403. FixedtempMax=100
控制您将获得多少物品,如果尝试增加FixedtempMax
,则会得到403。
My questions is how to specify a startIndex or an offset in order to get items from 101 to 200 and so on ? 我的问题是如何指定startIndex或偏移量,以使项目从101到200等?
I already tried startIndex=100
and offset=100
based on jql specification with no luck. 我已经尝试过基于jql规范的
startIndex=100
和offset=100
,但是没有运气。
Edit: 编辑:
If you're logged in, FixedtempMax
can be set to 200. Still don't solve the problem thought. 如果您已登录,
FixedtempMax
可以将FixedtempMax
设置为200。仍然无法解决问题。
I'll leave it here for anyone looking for the same thing. 我将其留在这里,供任何寻找相同物品的人使用。
The attribute to use is &pager/start=id
and here's a little bash script to download them by slice of 200... 要使用的属性是
&pager/start=id
,这是一个小bash脚本,可按200片的大小下载它们。
#!/bin/bash
for i in {0..58600..200}
do
curl --max-time 9000 "https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=issuetype+%3D+Bug+AND+status+%3D+Resolved+AND+resolution+%3D+Fixed+ORDER+BY+createdDate+ASC&tempMax=200&pager/start=$i";
done
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.