We have a few workflows where there are multiple approval steps in succession, these are normally different people but in some cases the approver for stage 1 is the same as the approver for stage 2. We are looking for a way to automate the approval if the approvers match, so the approver only has to click approve once and both stages will be approved..
In theory this could be achieved via post function, where it pulls the user that approve the request and compares this to the user select field used for the approvers of stage 2. Then if the approver of stage 1 is present automatically transition the approval of stage 2.
I've tried to drill into the approval field using groovy Misc W
orkflow extension specifically but so far I have not been able to retrieve the user who has approved the current approval of the ticket.
Has anyone else achieved this or something similar?