It's all about the answers!

Ask a question

How to get unresolved workitems using OSLC Workitem API with accept header set as application/xml

Vishal k (111) | asked Nov 06 '19, 3:50 a.m.

By using below GET URL, I’m able to correctly fetch the unresolved workitems for the Project context ID specified in the url with accept header set as application/rdf+xml

HTTP GET Request URL: https://localhost:3333/ccm/oslc/contexts/<ContextID>/workitems?oslc.where=oslc_cm%3Aclosed%21%3D%22false%22&amp; <o:p> </o:p>

 URL Parameters:

<o:p> </o:p>

Name <o:p> </o:p>

Value <o:p> </o:p>

oslc.where <o:p> </o:p>

oslc_cm: closed!=false <o:p> </o:p> <o:p> </o:p>

dcterms:identifier <o:p> </o:p>




HTTP Headers: <o:p> </o:p>

Name <o:p> </o:p>

Value <o:p> </o:p>

Accept <o:p> </o:p>

application/rdf+xml <o:p> </o:p>

Authorization <o:p> </o:p>

Basic xxxxxxxx <o:p> </o:p>

<o:p> </o:p>

But the issue arises if I just change the ACCEPT header value to “application/xml” by keeping everything else same, I’m getting all the workitems (resolved + unresolved). <o:p> </o:p>

I need only Unresolved Work Items(alongwith with details) in the XML response.   <o:p> </o:p>

Can someone please help me resolve this issue? Any suggestions   <o:p> </o:p>

<o:p>   </o:p>

Be the first one to answer this question!

Register or to post your answer.