Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is the OSLC query syntax for multiple types and states

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?

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,949

Question asked: Feb 12 '20, 8:35 a.m.

Question was seen: 858 times

Last updated: Feb 12 '20, 8:35 a.m.

Confirmation Cancel Confirm