It's all about the answers!

Ask a question

How to query workitems using status filter in EWM using OSLC API?


G C (4911) | asked Jan 16, 12:44 a.m.

Querying RTC based  on status value of the workitem like "New","Open","Closed",the query always returns 0 results

Does anyone have an idea about how to form a RTC query based on the status attribute?


This  is the query I used

Many thanks in advance for your answers


Comments
Ralph Schoon commented Jan 16, 3:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The status attribute is like any other attributes. It is just a string.

<oslc_cm:status rdf:datatype="http://www.w3.org/2001/XMLSchema#string">New</oslc_cm:status>


This pseudo code should show the where statement:

whereTerm2='&'+ where + '='+'oslc_cm:status='+comm.urlEncode(f"\"{state}\"")

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.