It's all about the answers!

Ask a question

Read all defects using RRA or SDK

Praveen Kumar (371622) | asked Jul 08 '13, 10:24 a.m.
How can I programmatically read only defects using Reportable Rest API  or SDK. 

Accepted answer

permanent link
Indradri Basu (1.8k1514) | answered Jul 09 '13, 7:36 a.m.
Assuming you are just getting started, below are few hints.

Reportable Rest:
1) To list all Defects and their Project Area names
2) To list all workitems Ids of type Defects for a particular project area:
https://<yourserver>:<port>/ccm/rpt/repository/workitem?fields=workitem/workItem[projectArea/name='myproject1' and type/id='defect']/id

For using SDK, I think you may not just want to list the defects but also want to do a few more things as well.
I found Ralph's blog very useful and would recommend you looking at What API’s are Available for RTC and What Can You Extend @ Ralph's Blog where you will find examples as well several links to other articles.

Hope this helps a bit.

Praveen Kumar selected this answer as the correct answer

Your answer

Register or to post your answer.