How to get all defects in ClearQuest by HTTP Restful API

我的梦境 提交于 2021-01-29 11:17:45

问题


This question should be easy if you are familiar with ClearQuest, unfortunately, it's an old tool and there is not much useful resources on the Internet. I only found one article helpful https://www.ibm.com/developerworks/cn/rational/r-cn-rcqoslccmrestapi/index.html

Here is I've already tired, I can get all defects that the state is Resolved by this URL http://192.168.0.1/cqweb/oslc/repo/cqdb/db/SAMPL/record/?oslc_cm.query=State="Resolved"&rcm.type=Defect

But there are many different states in ClearQuest, such as Summitted, Closed, Checked etc, so how to get all defects in the database, I don't want to try every URL in my code. Is there an another way to do this? Please help!


回答1:


Try the below code. This finds the defects of a particular defect family though.

http://localhost:8080/oslc/cqrest/repo/7.0.0/db/SAMPL/record/?oslc_cm.query=Found_in_Product_Family="MyDefectFamily"&rcm.type=Defect

reference : https://jazz.net/forum/questions/147541/rational-clearquest-http-request-to-find-defects-that-have-been-updated-since-a-specific-time



来源:https://stackoverflow.com/questions/57425298/how-to-get-all-defects-in-clearquest-by-http-restful-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!