Having trouble getting the approval data from rtc into RPE
I am using RPE 2.0.1 and CLM 6.0.1. I would like to pull the approval data from a single work item.
Ultimately I would like the output to look like this:
Approval Name Approver Status
Review 1 Joe Pending
Review 1 Sue Approved
Review 2 Harry Pending
Review 2 Tom Pending
Review 2 Dick Pending
Review 3 Jim Pending
Icing on the cake would be the date the approver approved
Thoughts?
Ultimately I would like the output to look like this:
Approval Name Approver Status
Review 1 Joe Pending
Review 1 Sue Approved
Review 2 Harry Pending
Review 2 Tom Pending
Review 2 Dick Pending
Review 3 Jim Pending
Icing on the cake would be the date the approver approved
Thoughts?
2 answers
You can simply use approvals element (com.ibm.team.workitem.Approval) as in the screen shot attached.
But icing this cake is not straight forward. :) You need to use JavaScript - add modified date (workitem/workItem/itemHistory/modified) to an array and find the date the approver approved.
But icing this cake is not straight forward. :) You need to use JavaScript - add modified date (workitem/workItem/itemHistory/modified) to an array and find the date the approver approved.
Comments
I ended up with the following:
$290 = workitem/workItem/approvals/approvalDescriptor/approvals/approvalDescriptor
$291 = workitem/workItem/approvals/approvalDescriptor/approvals/approver
$292 = workitem/workItem/approvals/approvalDescriptor/approvals/approvalDescriptor
$290 = workitem/workItem/approvals/approvalDescriptor/approvals/approvalDescriptor
$291 = workitem/workItem/approvals/approvalDescriptor/approvals/approver
$292 = workitem/workItem/approvals/approvalDescriptor/approvals/approvalDescriptor