It's all about the answers!

Ask a question

404 when using the REST API to get the reportedAgainstBuilds for a work item


kathleen sharp (2821112) | asked Oct 29 '12, 12:33 p.m.
I'm trying to use the REST API to see how many builds a work item has been reported against, my query looks like this:

 https://<host>:<port>/jazz/oslc/workitems/<workItemNumber>/rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds

I get the following result:

<oslc_cm:error xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<oslc_cm:status>404</oslc_cm:status>
<oslc_cm:message>
CRJAZ0215I The following record was not found in the database: com.ibm.team.build.internal.common.model.impl.BuildResultHandleImpl@62f662f6 (stateId: null, itemId: [UUID _ixEsoRz1EeKfP884K0QK7g], origin: <unset>, immutable: <unset>)
</oslc_cm:message>
</oslc_cm:error>

Some of the build results have been deleted, does that mean I cannot use this query, is this a bug or is my query wrong?
Note: If the build results have been deleted I still want to count them...

Comments
kathleen sharp commented Nov 13 '12, 9:52 a.m.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.