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

When using the REST API is there a modifier for an item such as first and last?

 When using the report repository, I can do...

https://itprojmgmt.penfed.org:9443/ccm/rpt/repository/generic?fields=generic/com.ibm.team.process.ProjectArea/(name|archived|itemHistory/*)

which gives me all the itemHistory elements, but in truth, I just want the first and last itemHistory.

In XPath (and such) you can do:
https://itprojmgmt.penfed.org:9443/ccm/rpt/repository/generic?fields=generic/com.ibm.team.process.ProjectArea/(name|archived|itemHistory[first()]/*|itemHistory[last()]/*)
but that gives me a 500 error.

Anyone have any ideas?

0 votes



One answer

Permanent link
I think you have to make two calls, size=1, sort = old to new, and sort = new to old.

0 votes

Comments

 Where do I place those modifiers?

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
× 12,024
× 18

Question asked: Aug 15 '16, 11:53 a.m.

Question was seen: 2,769 times

Last updated: Aug 15 '16, 2:01 p.m.

Confirmation Cancel Confirm