It's all about the answers!

Ask a question

How do you get approval date through the Java API?


Francisco Rodriguez (561528) | asked Oct 31 '14, 7:32 p.m.
edited Oct 31 '14, 11:42 p.m. by Geoffrey Clemm (30.1k33035)

I am trying to get the date when an approval goes from "Pending" to "Approved". Is this possible with the Java API?

According to this article:
https://jazz.net/library/article/1118

Approval records consists of following attributes:
Type
Subject
Due Date
State
Approver

So I don't know if there is a way to get this date.

Thanks in advance,
Francisco R.

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Nov 01 '14, 7:55 a.m.
edited Nov 03 '14, 1:47 p.m.
Looking thru the api and code it looks like the approval itself does not contain any info on when the state changed.  but the info is in the containing workitem history. (which is a collection of workitem states, which is really a copy of the workitem fields that changed, I think)

I have not seen a way to get the workitem history with a plain java api.. but have seen it with the Reportable REST api.

https://jazz.net/forum/questions/149321/some-questions-about-reportable-rest-api
Francisco Rodriguez selected this answer as the correct answer

Comments
Francisco Rodriguez commented Nov 03 '14, 1:32 p.m.

Sam, thanks for taking a time to answer my question. Let me try the approach you are referring to and I'll let you know my results. 


Regards,
Francisco R.

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.