Now from the above appTask variable I can get the assignee using: appTask.getAssignee();
I believe this gives me the USER the task is assigned to and not the GROUP, if the task was not yet claimed.
What if I need to get the group the task was assigned to? a scenario where the task is yet to be claimed?
I noticed that if I manage to get the DelegateTask object for the relevant taskId(instead of the Task object as mentioned above in my code), then I can manage to get the assigned group by using- delegateTask.getCandidates();
Any inputs would be appreciated.... Thank you in advance...