Rally API缺陷查询返回不正确的结果

问题描述 投票:1回答:1

我正在使用Rally API v2.0来访问缺陷列表。标准是从特定项目中获取所有SubmittedOpenFixed缺陷。虽然我可以得到很多清单,但我并没有遇到所有缺陷。例如,我注意到有些标记为Fixed但也​​处于Accepted计划状态的缺陷。这些缺陷不退回。我看到其他所有计划状态(想法,已定义,进行中,已发布)均存在缺陷,但未接受。

我是否缺少某些东西,或者这是一个潜在的问题?

const query = "(((State%20%3D%20%22Submitted%22)%20OR%20(State%20%3D%20%22Open%22))%20OR%20(State%20%3D%20%22Open%22))";
const _fetch = "Applications,CreationDate,Description,FormattedID,Iteration,LastUpdateDate,Name,ObjectID,Owner,PlanEstimate,Project,ScheduleState,Severity,State";
const start = 1;
const pagesize = 2000;
const project = "https://rally1.rallydev.com/slm/webservice/v2.0/project/<my_actual_project_id>";

// Set header
const headersMeta = {'ZSESSIONID': this.apiKey};
const options = {
    headers: headersMeta
};

// Build the url
const url = "https://rally1.rallydev.com/slm/webservice/v2.0/defect?query=" + query +
    "&fetch=" + _fetch +
    "&start=" + start +
    "&pagesize=" + pagesize +
    "&project=" + project;

fetch(url, options) // more code to handle the response. No issues here.

同样,我确实收到了我的项目中有Open, Submitted, or Fixed个缺陷的回复。我不是Schedule StateAccepted中得到任何东西。

rally rallyapi agile-central-api
1个回答
0
投票

好吧,我很无聊。我的查询两次搜索Open,但从未检查过Fixed。问题已解决。

将帖子作为运行Rally API调用的示例。

固定电话:

const query = "(((State = %22Submitted%22) OR (State = %22Open%22)) OR (State = %22Fixed%22))";
© www.soinside.com 2019 - 2024. All rights reserved.