It's all about the answers!

Ask a question

Get "Planned for"'s (iteration) itemid be used OSLC query key "iterationLabel"


HIROAKI JOSAKO (47427) | asked Jan 19 '16, 11:37 p.m.
日本語:
目的は ワークアイテムを検索するときに反復名をキーにして行うこと。
HTTP Get
https://Jazzserver/ccm/oslc/contexts/_zyGbEA1IEeSp-s2XHor-aA/workitems?oslc.where=rtc_cm:plannedFor="https://Jazzserver/ccm/oslc/iterations/_MCrpwLnrEeWLIOToef9h7g"&oslc.select=dcterms:type,dcterms:identifier,dcterms:title,&oslc.orderBy=+dcterms:identifier

反復名(label)から下記IDを探すことができません。
"https://Jazzserver/ccm/oslc/iterations/_MCrpwLnrEeWLIOToef9h7g"
いい手段はないでしょうか?

In English
Purpose to key "iteration name" when query "workitems"

HTTP Get
https://Jazzserver/ccm/oslc/contexts/_zyGbEA1IEeSp-s2XHor-aA/workitems?oslc.where=rtc_cm:plannedFor="https://Jazzserver/ccm/oslc/iterations/_MCrpwLnrEeWLIOToef9h7g"&oslc.select=dcterms:type,dcterms:identifier,dcterms:title,&oslc.orderBy=+dcterms:identifier

I can not find the following ID from iteration name (label).
"https://Jazzserver/ccm/oslc/iterations/_MCrpwLnrEeWLIOToef9h7g"

I think a good way?

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Jan 27 '16, 12:50 a.m.
I assume you know how to get the project service provider URL since you have gone this far.
1. Access the project area service provider URL, such as
    https://clm:9443/ccm/oslc/contexts/_tNGM8IPsEeSNXIoymcU8qg/workitems/services.xml
2. In the response content, look for the "resourceShape" of the work item type that you're interested, for example:
    < oslc:resourceShape rdf:resource="https://clm:9443/ccm/oslc/context/_tNGM8IPsEeSNXIoymcU8qg/shapes/workitems/defect" / >
3. Access the resource shape URL as shown above.
4. In the response content, simply search "iterations", and you should find something like this:
     < rdf:Description rdf:about="https://clm:9443/ccm/oslc/context/_tNGM8IPsEeSNXIoymcU8qg/shapes/workitems/defect/property/target/allowedValues">
        < rdf:type rdf:resource="http://open-services.net/ns/core#AllowedValues" / >
        < oslc:allowedValue rdf:resource="https://clm:9443/ccm/oslc/iterations/_tWgnoIPsEeSNXIoymcU8qg" / >
        < oslc:allowedValue rdf:resource="https://clm:9443/ccm/oslc/iterations/_tWgAk4PsEeSNXIoymcU8qg" / >
        < oslc:allowedValue rdf:resource="https://clm:9443/ccm/oslc/iterations/_tWgAkoPsEeSNXIoymcU8qg" / >
        < oslc:allowedValue rdf:resource="https://clm:9443/ccm/oslc/iterations/_tWgnoYPsEeSNXIoymcU8qg" / >
        < oslc:allowedValue rdf:resource="https://clm:9443/ccm/oslc/iterations/_tWgAkYPsEeSNXIoymcU8qg" / >
     < /rdf:Description>
HIROAKI JOSAKO selected this answer as the correct answer

2 other answers



permanent link
HIROAKI JOSAKO (47427) | answered Feb 16 '16, 7:18 p.m.
Indeed, is not the OSLC.
Versatility is not enough.
However, that number of steps to information acquisition increases is not willing.
While the RTC of the API specification does not change, we will use the InternalAPI.

Thanks

permanent link
HIROAKI JOSAKO (47427) | answered Jan 31 '16, 8:01 p.m.
Hi Donald
Thank you for the info

But,

In this way, not know the name of the iteration, we can not identify the itemid of iterations you want to specify.

I was self resolved.
The "DTO2" of the API for WebUI accessed by Get, we were able to get a list of the Timeline.
examle:
https://jazzserver/ccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/iterations?uuid=_iOcXFQ1IEeSBLfbfoE3dWQ&includeArchived=true

We can get. "Name", "identifier", "itemid", search the specified string from the XML acquired. It was realized that the particular result itemid.

Comments
Donald Nong commented Jan 31 '16, 10:02 p.m.

You're using an internal API, and have to reply on it being stable across releases. If you would like to stick with OSLC, you can still get the name of the iteration if you access to resource URL of each iteration.

Your answer


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.