Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do you get approval date through the Java API?


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.

0 votes


Accepted answer

Permanent link
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

1 vote

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 31 '14, 7:32 p.m.

Question was seen: 2,726 times

Last updated: Nov 03 '14, 1:47 p.m.

Confirmation Cancel Confirm