拥有10000个数据表并使用query(jql)从表中获取特定数据。并且获取的计数是正确的,这是673但是当打开这些数据时它只发送100个数据。 这是我的代码:
request({
/////////////////////////////////////
//query to get current open tickets//
/////////////////////////////////////
url: '/rest/api/2/search?jql=project=OWRT AND status in (Open, "In Progress", Reopened)&startAt=0&maxResults=-1',
success: function(response) {
var owrt = $.parseJSON(response);
var liktot = parsedata(response,'owrt');
console.log("OWRT max"+owrt.maxResults);
request({
////////////////////////////////////////////////////
//query to get current resolved and closed tickets//
////////////////////////////////////////////////////
url: '/rest/api/2/search?jql=project=OWRT AND status not in (Open, "In Progress", Reopened)',
success: function(response1) {
var fixowrt = $.parseJSON(response1);
var owrt_tot=owrt.total;
request({
//////////////////////////////////////////
//query to get year 2016 created tickets//
//////////////////////////////////////////
url: '/rest/api/2/search?jql=project = OWRT AND created >= 2016-01-01 AND created <= 2016-12-31',
success: function(response2) {
var cowrt = $.parseJSON(response2);
request({
//////////////////////////////////////////
//query to get year 2017 created tickets//
//////////////////////////////////////////
url: '/rest/api/2/search?jql=project = OWRT AND created >= 2017-01-01 AND created <= 2017-12-31&maxResults=-1',
success: function(response3) {
var cfixowrt = $.parseJSON(response3);
var owrtcre17 = parsedata(response3,'owrt2017');
var cowrt_tot=cowrt.total;
request({
/////////////////////////////////////////
//query to get year 2016 closed tickets//
/////////////////////////////////////////
url: '/rest/api/2/search?jql=project = OWRT AND status = Closed AND updated >= 2016-01-01 AND updated <= 2016-12-31',
success: function(response4) {
var fowrt = $.parseJSON(response4);
request({
/////////////////////////////////////////
//query to get year 2017 closed tickets//
/////////////////////////////////////////
url: '/rest/api/2/search?jql=project = OWRT AND status = Closed AND updated >= 2017-01-01 AND updated <= 2017-12-31',
success: function(response5) {
var ffixowrt = $.parseJSON(response5);
var fowrt_tot=fowrt.total;
request({
////////////////////////////////////////////
//query to get all tickets in this project//
////////////////////////////////////////////
url: '/rest/api/2/search?jql=project=OWRT',
success: function(response6) {
console.log("start1:"+reqcount);
var fullowrt = $.parseJSON(response6);
var fullowrt_tot = fullowrt.total
var obj = {};
obj['key']='OWRT';
obj['tot']=owrt_tot;
obj['totlink']=liktot[0];
obj['ntotlink']=liktot[1];
obj['fixntotlink']=fixowrt.total;
obj['ckey']='OWRT';
obj['ctot']=cowrt_tot;
obj['cre17totlink']=owrtcre17[0];
obj['cre17ntotlink']=owrtcre17[1];
obj['cfixntotlink']=cfixowrt.total;
obj['fkey']='OWRT';
obj['ftot']=fowrt_tot;
obj['ffixntotlink']=ffixowrt.total;
obj['fulltot']=fullowrt.total;
summary.push(obj);
reqcount=reqcount+1;
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key"]},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key"]},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key"]},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key","id","status","project","issuetype","issuelinks", "summary", "assignee", "type",'created']},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key"]},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key"]},
contentType: "application/json"
});
requestexe();
},
error: function(response) {
console.log("Error loading API (" + uri + ")");
console.log(arguments);
},
data: {"fields":["key","id","status","project","issuetype","issuelinks", "summary", "assignee", "type",'created']},
contentType: "application/json"
});
查看查询时的总计数是&#34; owrt_tot&#34;发送正确,但是当从中发送数据时,它只发送100个包含&#34; liktot [0]&#34; +&#34; liktot 1&#34;。 the final outcome of data
但是总计数是673.但是从上面的代码发送的数据只有100个。在此之前总计数达到1000几天后继续运行代码将我引导到100.所以有什么内存是问题还是需要更改代码?
答案 0 :(得分:0)
这是JIRA atlassian api的一个问题。他们故意限制使用atlassian支持验证