1

我正在使用 Rally API v2.0 来访问缺陷列表。标准是从特定项目中获取所有SubmittedOpen或缺陷。Fixed虽然我能够得到一个相当大的列表,但我并没有得到每一个缺陷。例如,我注意到有一些缺陷被标记为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

4

1 回答 1

0

好吧,我搞砸了。我的查询搜索了Open两次,但从未检查过Fixed. 问题解决了。

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

固定的线:

const query = "(((State = %22Submitted%22) OR (State = %22Open%22)) OR (State = %22Fixed%22))";
于 2020-06-02T18:25:26.733 回答