It's all about the answers!

Ask a question

What is the OSLC query syntax for multiple types and states


nannette Mori (50985) | asked Feb 12 '20, 8:35 a.m.

I am trying to query for multiple types and states.

my @rtcQueryResult = @{queryRTC($rtcUA,$baseURI_Jazz_CM,$rtcProjectContextId, 'oslc.where=rtc_cm:type in [com.ibm.team.apt.workItemType.epic","feature","com,ibm.team.workitemtype.epic6"]&oslc.select=dcterms:identifier,dcterms:type, dcterms:Title, cterms:mdified,rtc_cmstate')}; 

The above query statement gives me all three work Item types but I need to get the New state for each of those types

The statement below gives me 1 work item type and the state

my @rtcQueryResult = @{queryRTC($rtcUA,$baseURI_Jazz_CM,$rtcProjectContextId, 'oslc.where=rtc_cm:type =("com.ibm.team.apt.workItemType.epic" and rtc_cm:state= "com.ibm.team.apt.epic.workflow.state.s1"&oslc.select=dcterms:identifier,dcterms:type, dcterms:Title, cterms:mdified,rtc_cmstate')}; 

Does anyone know the query statement to query for multiple types and states in one query statement.  I need to get the type and the New state for each workitem?

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.