It's all about the answers!

Ask a question

How do you get approval date through the Java API?

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

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:

Approval records consists of following attributes:
Due Date

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.5k6189201) | 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.
Francisco Rodriguez selected this answer as the correct answer

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. 

Francisco R.

Your answer

Register or to post your answer.