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

RTC RESTful Webservice - How to retrieve Story Points?

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

0 votes



3 answers

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

0 votes

Comments

 Thank you


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

0 votes


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

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
× 9
× 2

Question asked: Feb 28 '13, 5:20 a.m.

Question was seen: 7,236 times

Last updated: Mar 20 '13, 2:08 p.m.

Confirmation Cancel Confirm