It's all about the answers!

Ask a question

Require REST URI for getting release and user story details


Raja P (1526) | asked Oct 16 '17, 4:30 a.m.
edited Oct 27 '17, 2:49 a.m. by Ralph Schoon (63.1k33645)

I need REST URI for getting release version and if i pass a particular release then i need to get user stroies which are created for the particular release. also if i pass a particular user story id then i need to get complete info (work item details) for the specific user story.

Thanks in advance:-)

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k15) | answered Oct 16 '17, 1:01 p.m.

If you are looking for "Planned For" value, you can try
https://server:port/ccm/rpt/repository/workitem?fields=workitem/workItem[projectArea/name='JKE Banking (Change Management)']/target/name

To get the work items planned for a particular release, you can use it in filter
https://server:port/ccm/rpt/repository/workitem?fields=workitem/workItem[target/name='2.0']/(id|summary)
will return ID and summary of all work items planned for 2.0 release

To access individual work item, you can use the work item ID as filter
https://server:port/ccm/rpt/repository/workitem?fields=workitem/workItem[id=123]/(description|summary|severity|state)
or
https://server:port/ccm/rpt/repository/workitem?fields=workitem/workItem[id=123]//
will give work item details for WI #123

Raja P selected this answer as the correct answer

Comments
Raja P commented Oct 25 '17, 2:31 a.m.

Hi Subramnaya,

Thanks for your reply. it really helps.

I have a project name called "ABC", so I need to get 

Planned Items details (such as Summary, Id, Status, Story Point and Filed Against)

by passing the project name

Kindly share me the right URI to get them.

Thanks in advance:-)


Raja P commented Oct 26 '17, 10:24 a.m.

Hi Subramnaya,

I need a REST URI for getting below details by passing the project name for both types (i.e Tasks and story)

Id, Summary, Type, Filed Against, Application, Story Points, Creation Date, Creation By, Project Area, Team Area, Owned By, Priority, Planned For, Release

So could you please help me to get them.

Thanks


Donald Nong commented Oct 27 '17, 3:49 a.m.

Use * as the field selection should give you "all" fields. For example, workitem/workItem/(description|summary|severity|state) show you only the select four attributes, while workitem/workItem/* will show you all the attributes.

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.