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

rtc_cm:ownedBy is not returned in the results of oslc.select

Hi,

Please give me a suggestion about OSLC.

Environment:
RTC 3.0 ifix1.

I run sent query by GET method.

https://server:9443/ccm/oslc/contexts/_HrD3wJMXEeC_7KEYV0gOaQ/workitems?oslc.searchTerms="aaa2"&oslc.select=dcterms:identifier,dcterms:title,rtc_cm:ownedBy,rtc_cm:resolvedBy,rtc_cm:plannedFor,rtc_cm:state

Then following Response Body was returned.
<rdf:RDF
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:oslc_cm="http://open-services.net/ns/cm#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="https://server:9443/ccm/oslc/contexts/_HrD3wJMXEeC_7KEYV0gOaQ/workitems">
<rdfs:member>
<oslc_cm:ChangeRequest rdf:about="https://server:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/26">
<rtc_cm:plannedFor rdf:resource="https://server:9443/ccm/oslc/iterations/_H28XoJMXEeC_7KEYV0gOaQ"/>
<dcterms:title rdf:parseType="Literal">aaa2</dcterms:title>
<rtc_cm:resolvedBy rdf:resource="https://server:9443/ccm/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA"/>
<rtc_cm:state rdf:resource="https://server:9443/ccm/oslc/workflows/_HrD3wJMXEeC_7KEYV0gOaQ/states/bugzillaWorkflow/1"/>
<dcterms:identifier>26</dcterms:identifier>
</oslc_cm:ChangeRequest>
</rdfs:member>
</rdf:Description>
<oslc:ResponseInfo rdf:about="https://server:9443/ccm/oslc/contexts/_HrD3wJMXEeC_7KEYV0gOaQ/workitems?oslc.searchTerms=%22aaa2%22&oslc.select=dcterms:identifier,dcterms:title,rtc_cm:ownedBy,rtc_cm:resolvedBy,rtc_cm:plannedFor,rtc_cm:state">
<dcterms:title>?????????????????????</dcterms:title>
<oslc:totalCount>1</oslc:totalCount>
</oslc:ResponseInfo>
</rdf:RDF>


In the Response Body, rtc_cm:ownedBy is not included.
Below is the xml of the workitem.


<?xml version="1.0" encoding="UTF-8"?>
<oslc_cm:ChangeRequest xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" rdf:about="https://server:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/26">
<rtc_cm:archived>false</rtc_cm:archived>
<rtc_cm:filedAgainst rdf:resource="https://server:9443/ccm/resource/itemOid/com.ibm.team.workitem.Category/_JPgtEpMXEeC_7KEYV0gOaQ"/>
<rtc_cm:com.ibm.team.apt.attribute.constraintdate/>
<rtc_cm:com.ibm.team.apt.attribute.constrainttype rdf:resource="https://server:9443/ccm/oslc/enumerations/_HrD3wJMXEeC_7KEYV0gOaQ/constraintEnum/constraintEnum.literal.asap"/>
<rtc_cm:contextId>_HrD3wJMXEeC_7KEYV0gOaQ</rtc_cm:contextId>
<rtc_cm:correctedEstimate/>
<dc:created>2011-06-10T04:29:35.658Z</dc:created>
<dc:creator rdf:resource="https://server:9443/ccm/oslc/users/_svxHUJJYEeC3FrnEk7GJ2Q"/>
<dc:description/>
<rtc_cm:due/>
<rtc_cm:estimate/>
<rtc_cm:foundIn/>
<dc:identifier>26</dc:identifier>
<rtc_cm:comments oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:comments"/>
<oslc_cm:priority rdf:resource="https://server:9443/ccm/oslc/enumerations/_HrD3wJMXEeC_7KEYV0gOaQ/priority/priority.literal.l1"/>
<rtc_cm:resolution/>
<oslc_cm:severity rdf:resource="https://server:9443/ccm/oslc/enumerations/_HrD3wJMXEeC_7KEYV0gOaQ/severity/severity.literal.l3"/>
<rtc_cm:state rdf:resource="https://server:9443/ccm/oslc/workflows/_HrD3wJMXEeC_7KEYV0gOaQ/states/bugzillaWorkflow/1"/>
<rtc_cm:subscribers oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:subscribers"/>
<dc:subject/>
<dc:modified>2011-06-23T10:13:19.726Z</dc:modified>
<rtc_cm:modifiedBy rdf:resource="https://server:9443/ccm/oslc/users/_svxHUJJYEeC3FrnEk7GJ2Q"/>
<rtc_cm:ownedBy rdf:resource="https://server:9443/ccm/oslc/users/_svxHUJJYEeC3FrnEk7GJ2Q"/>
<rtc_cm:projectArea rdf:resource="https://server:9443/ccm/oslc/projectareas/_HrD3wJMXEeC_7KEYV0gOaQ"/>
<rtc_cm:resolved/>
<rtc_cm:resolvedBy rdf:resource="https://server:9443/ccm/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA"/>
<rtc_cm:startDate/>
<dc:title>aaa2</dc:title>
<rtc_cm:plannedFor rdf:resource="https://server:9443/ccm/oslc/iterations/_H28XoJMXEeC_7KEYV0gOaQ"/>
<rtc_cm:timeSpent/>
<dc:type rdf:resource="https://server:9443/ccm/oslc/types/_HrD3wJMXEeC_7KEYV0gOaQ/task"/>
<rtc_cm:teamArea rdf:resource="https://server:9443/ccm/oslc/teamareas/_UkZhsJMXEeC_7KEYV0gOaQ"/>
<rtc_cm:timeSheet rdf:resource="https://server:9443/ccm/oslc/workitems/26/rtc_cm:timeSheet"/>
<rtc_cm:progressTracking rdf:resource="https://server:9443/ccm/oslc/workitems/_NrS0gJMaEeCokOXHuZpCCw/progressTracking"/>
<calm:affectsExecutionResult oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:affectsExecutionResult"/>
<calm:blocksTestExecutionRecord oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:blocksTestExecutionRecord"/>
<calm:testedByTestCase oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:testedByTestCase"/>
<calm:implementsRequirement oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:implementsRequirement"/>
<oslc_cm:relatedChangeManagement oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/oslc_cm:relatedChangeManagement"/>
<calm:tracksChanges oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:tracksChanges"/>
<calm:relatedTestCase oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedTestCase"/>
<calm:relatedTestScript oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedTestScript"/>
<calm:relatedExecutionRecord oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedExecutionRecord"/>
<calm:relatedTestPlan oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedTestPlan"/>
<calm:tracksRequirement oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:tracksRequirement"/>
<calm:relatedRequirement oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedRequirement"/>
<calm:elaboratedByArchitectureElement oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:elaboratedByArchitectureElement"/>
<calm:affectsPlanItem oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:affectsPlanItem"/>
<calm:affectedByDefect oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:affectedByDefect"/>
<rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s"/>
<rtc_cm:com.ibm.team.workitem.linktype.resolvesworkitem.resolves oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.resolvesworkitem.resolves"/>
<rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks"/>
<rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related"/>
<rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s"/>
<rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced"/>
<rtc_cm:com.ibm.team.connector.ccbridge.common.ver2wi.s oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.connector.ccbridge.common.ver2wi.s"/>
<rtc_cm:com.ibm.team.workitem.linktype.schedulePredecessor.successor oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.schedulePredecessor.successor"/>
<rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment"/>
<rtc_cm:com.ibm.team.workitem.linktype.resolvesworkitem.resolvedBy oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.resolvesworkitem.resolvedBy"/>
<rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf"/>
<rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact"/>
<rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent"/>
<rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom"/>
<rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds"/>
<rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children"/>
<rtc_cm:com.ibm.team.workitem.linktype.schedulePredecessor.predecessor oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.schedulePredecessor.predecessor"/>
<rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates"/>
<rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet"/>
<rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn"/>
<rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies"/>
<calm:relatedTestSuite oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/calm:relatedTestSuite"/>
<rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds oslc_cm:collref="https://server:9443/ccm/oslc/workitems/26/rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds"/>
</oslc_cm:ChangeRequest>



Could anyone let me know what is considered as the cause that rtc_cm:ownedBy is not returned in the Response Body?

0 votes



4 answers

Permanent link
Hi,

Make sure to request the correct version of OSLC-CM.

We recommend to use OSLC_CM 2.0.
Please study https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 for details with lots of examples.

Which version you use is defined by the HTTP headers you use:
For OSLC_CM 2.0, you have to use Accept: application/rdf+xml and OSLC-Core-Version: 2.0
For OSLC_CM 1.0, you have to use Accept: application/x-oslc-cm-change-request+xml
You will also get results without using any headers: However, the form of such responses is not standardized. It is not recommended to use these.

and note that the owner of a work item is: dcterms:contributor


Cheers,
--andre


Andre Weinand
RTC Work Items

1 vote


Permanent link
I'm still struggling with this...
Could anyone please give me a suggestion about this?

0 votes


Permanent link
The answer is in the previous reply..

There is NO rtc_cm:ownedBy
Use dcterms:contributor instead.

0 votes


Permanent link
hi Steve, have you resolved this issue. I run into the same question with you. And I have tried "dcterms:contributor", but got "net.sf.ezmorph.MorphException: Unspecified property for dcterms:contributor"

0 votes

Comments

You do realize that this is a three-year-old post, don't you? Are you still using the version same as three years ago? If not, you'd better open a new post.

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

Question asked: Jun 23 '11, 7:39 a.m.

Question was seen: 8,190 times

Last updated: Apr 25 '16, 10:05 p.m.

Confirmation Cancel Confirm