It's all about the answers!

Ask a question

How to print workitem "History"


0
1
Pravin Patil (104124124) | asked May 28 '15, 5:25 p.m.

Is there a way to get "History" of a workitem in query result?

Or

Can history of a workitem type be printed?

One answer



permanent link
Don Yang (7.6k21100135) | answered May 28 '15, 8:30 p.m.
I don't think there is an out of box query to do that or creating a query can get a workitem's history.
You can consider to use Reportable REST to print out the workitem's history, please refer to the post:

https://jazz.net/forum/questions/149321/some-questions-about-reportable-rest-api

You can expose various details based on your needs following the below details:

https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

I tried with workitem 106 to print out history's owner change, description, comment and state change:

https://localhost:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id='106']/(itemHistory/(owner/name|description|comments/content|state/name))

hopefully this helps you to start with:

Your answer


Register or to post your answer.