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

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

日本語:
目的は ワークアイテムを検索するときに反復名をキーにして行うこと。
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?

0 votes


Accepted answer

Permanent link
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

0 votes


2 other answers

Permanent link
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.

0 votes

Comments

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.


Permanent link
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

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,927
× 515

Question asked: Jan 19 '16, 11:37 p.m.

Question was seen: 4,086 times

Last updated: Feb 16 '16, 7:18 p.m.

Confirmation Cancel Confirm