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

How to fetch workflow with dc:identifier=2 using OSLC?

Please frame a query for the below xml data to fetch dc:identifier=2

Accept Header is application/xml

<oslc_cm:Collection xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" 
oslc_cm:totalCount="6" xmlns:dc="http://purl.org/dc/terms/" 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/2">
<dc:identifier>2</dc:identifier>
<dc:title>In Progress</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/inprogress.gif</rtc_cm:iconUrl>
<rtc_cm:group>inprogress</rtc_cm:group>
</rtc_cm:Status>
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/1">
<dc:identifier>1</dc:identifier>
<dc:title>New</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/open.gif</rtc_cm:iconUrl>
<rtc_cm:group>open</rtc_cm:group>
</rtc_cm:Status>
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/6">
<dc:identifier>6</dc:identifier>
<dc:title>Reopened</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/reopen.gif</rtc_cm:iconUrl>
<rtc_cm:group>open</rtc_cm:group>
</rtc_cm:Status>
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/3">
<dc:identifier>3</dc:identifier>
<dc:title>Resolved</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/resolve.gif</rtc_cm:iconUrl>
<rtc_cm:group>closed</rtc_cm:group>
</rtc_cm:Status>
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/4">
<dc:identifier>4</dc:identifier>
<dc:title>Closed</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/close.gif</rtc_cm:iconUrl>
<rtc_cm:group>closed</rtc_cm:group>
</rtc_cm:Status>
<rtc_cm:Status rdf:resource="https://jazz.visteon.com:9443/ccm/oslc/workflows/_r_o5UJthEeGYYPMfxStaiQ/states/com.ibm.team.workitem.defectWorkflow/com.ibm.team.workitem.defectWorkflow.state.s7">
<dc:identifier>com.ibm.team.workitem.defectWorkflow.state.s7</dc:identifier>
<dc:title>Deferred</dc:title>
<rtc_cm:iconUrl>https://jazz.visteon.com:9443/ccm/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_r_o5UJthEeGYYPMfxStaiQ/workflow/defer.gif</rtc_cm:iconUrl>
<rtc_cm:group>open</rtc_cm:group>
</rtc_cm:Status>
</oslc_cm:Collection>


Thanks
Jayesh.S

0 votes



3 answers

Permanent link
 Hello,
right - expected.

Please refer to https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Getting_Representations

You may use 
https://jazz.server.com:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/2

Eric

1 vote


Permanent link
 Hello,
not sure I understand the question, and what information you want to fetch.
May you please add more details?

Thanks,
Eric

0 votes


Permanent link
I want to fetch workitem data with dc:identifier=2 by using query syntax where
https://jazz.server.com:9443/ccm/oslc/contexts/_r_o5UJthEeGYYPMfxStaiQ/workitems?oslc_cm.where=dc:identifier="2"

but it is not working

0 votes

Your answer

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,938
× 7,495
× 1,700
× 516
× 383
× 62

Question asked: Jan 30 '14, 1:10 a.m.

Question was seen: 7,878 times

Last updated: Jan 31 '14, 5:34 a.m.

Confirmation Cancel Confirm