It's all about the answers!

Ask a question

RTC RESTful Webservice - How to retrieve Story Points?


Richard Marais (1623) | asked Feb 28 '13, 5:20 a.m.
edited Mar 04 '13, 10:27 a.m.
I am asking the same question as https://jazz.net/forum/questions/67196/how-to-retrieve-story-points-from-rest-api

Is there a way to get access to the story point via the webservice? The above user talks aboy 'complexity', but I cannot seem to find this.

Here is aslo a list of teh customAttributes. Are they maybe here?

.../rpt/repository/workitem?fields=workitem/workItem/(id|customAttributes/(identifier|attributeType|builtIn|projectArea))

Any help will be appreciated.

Thanks

3 answers



permanent link
Richard Marais (1623) | answered Feb 28 '13, 5:33 a.m.
I have the answer:

see  .../resource/itemName/com.ibm.team.workitem.WorkItem/<ID>

<rtc_cm:com.ibm.team.apt.attribute.complexity rdf:resource="https://clm.intranet.group:9443/ccm1/oslc/enumerations/_i5dg8NC0EeGCT6fv27A1Pw/complexity/3"/>


Comments
Sarath Shasikumar commented Mar 20 '13, 11:04 a.m. | edited Mar 20 '13, 11:05 a.m.

 Thank you


permanent link
Richard Marais (1623) | answered Mar 04 '13, 9:59 a.m.
We have just upgraded our RTC from version 3  to version 4. The Story Points seem to be no longer accessacle under:

rtc_cm:com.ibm.team.apt.attribute.complexity

i.e. the element longer existis in teh schema resonse.

Is there any other way to get the Story Points?

Also, the following two elements still exist, but no longer work:
<dc:creator rdf:resource="https://clm.intranet.group:9443/jts/users/9122538"/>
<rtc_cm:ownedBy rdf:resource="https://clm.intranet.group:9443/jts/users/unassigned"/>

permanent link
Alanna Zito (1.3k3) | answered Mar 20 '13, 2:08 p.m.
JAZZ DEVELOPER
Richard,

In the reportable REST API, the story points value can be found under the "extensions" elements (along with the values for any other custom attributes).  There are different extensions elements depending on the type of the custom attribute (e.g., booleanExtensions, intExtensions), and also the "allExtensions" element, which returns the values for all types.  In each case, you can get the value you want by filtering on the key (the ID of the custom attribute).

For example, to get the story points as a string, you could use the URL <server-url>/ccm/rpt/repository/workitem?fields=workitem/workItem[id=7]/allExtensions[key=com.ibm.team.apt.attribute.complexity]/smallStringValue.

The "customAttributes" element that you mention returns the custom attributes that are available to the work item, but it doesn't have the values.

Your answer


Register or to post your answer.