【问题标题】:StartIndex or Offset attribute for jira xml exportjira xml 导出的 StartIndex 或 Offset 属性
【发布时间】:2014-12-16 16:39:23
【问题描述】:

我尝试以 XML 格式导出 jira 问题。

此页面https://issues.apache.org/jira/browse/ZOOKEEPER-2064?jql=issuetype%20%3D%20Bug%20AND%20status%20%3D%20Resolved%20AND%20resolution%20%3D%20Fixed 包含issuetypestatusresolution 属性。

如果我点击导出 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=100FixedtempMax=100 控制您将获得多少物品,如果您尝试增加 FixedtempMax,您将获得 403。

我的问题是如何指定 startIndex 或偏移量以获取从 101 到 200 的项目等等?

我已经尝试过基于 jql 规范的 startIndex=100offset=100,但没有成功。

编辑:

如果你已经登录了,FixedtempMax可以设置为200。仍然没有解决问题。

【问题讨论】:

    标签: xml api export jira


    【解决方案1】:

    我会把它留在这里给任何寻找相同东西的人。

    要使用的属性是&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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-13
      • 2012-09-03
      • 2011-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-19
      相关资源
      最近更新 更多