Is there a way to get the work item state date?
I know there is a way to retrieve the succession of states from the work item history, (https://jazz.net/forum/questions/149321/some-questions-about-reportable-rest-api)
but so far I managed to get only the state name. Can I get the state date? By that I mean the date at which an work item changed from "New" to "In progress". I am not limited to the REST api. Thank you |
Accepted answer
2 other answers
If you're facile with Java, look at the JavaDoc of the Plain Java client libraries for IAuditableHandle.
public interface IAuditableHandle extends IManagedItemHandleRepresents an auditable item. Auditable items exist in multiple states in a repository. There is a global notion of the current state of an auditable item; states other than the current are used for an audit trail. I've used this to good effect to tease out the change date of a specific attribute so that the date can be used to answer before/after sort of question.
This post has a small bit of Java that got me started.
|
You could create a timestamp attribute to get the date when the workitem got to that state using calculated values scripts. And then query that field.
|
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.