item status loops
Accepted answer
You're going to have to explain that a bit more I'm afraid - what do you mean? Are you talking about the number of times a work item goes back and forth through a workflow?
Comments
One other answer
This is not easily done in the client as JavaScript but is pretty simple to do in Report Builder, using the Work Item Status History. This gives you access to a timestamped record for every time a work item changed state, so will let you count how many times it went through each state.
My suggestion is that, instead of trying to report on it on the work item in real time, put up a widget on the dashboard that shows the information.