To pull information from approval tab using javascript
3 answers
Hi Pavithra,
You can create a Client plugin and run a workitem query to retrieve the item ids first and then retrieve the approver values for each of the individual approval items.
Useful methods for this:
ISaveParameter param = (ISaveParameter) data;
IAuditable auditable = param.getNewState();
if (auditable instanceof IWorkItem) {
IWorkItem sourceworkItem = (IWorkItem) auditable;
IApprovals approvals= sourceworkItem.getApprovals();
approval.getApprover()
Thanks.
You can create a Client plugin and run a workitem query to retrieve the item ids first and then retrieve the approver values for each of the individual approval items.
Useful methods for this:
ISaveParameter param = (ISaveParameter) data;
IAuditable auditable = param.getNewState();
if (auditable instanceof IWorkItem) {
IWorkItem sourceworkItem = (IWorkItem) auditable;
IApprovals approvals= sourceworkItem.getApprovals();
approval.getApprover()
Thanks.
Hi Pavithra,
I am not sure if this can be done using the javascript. But you can do it using Java API. Should be possible using Rest service as well.
Is this required to be run on all existing items (or) for new items?
Thanks.
I am not sure if this can be done using the javascript. But you can do it using Java API. Should be possible using Rest service as well.
Is this required to be run on all existing items (or) for new items?
Thanks.