Obtaining Assignees for an ARS

Joon
Regular Contributor
Regular Contributor

Hello,

I am trying to get all the owners of the entitlement to show up in the email template. So the receiver of the email would know who are the owners and the approvers.

I have tried some variables but they only show just one of them.

Also, I found ${allApprovers.collect{it.username}} one, but what I got is multiple emails as many as the owner registered and each email has only one owner each.

Do anyone has any idea to solve this ?

7 REPLIES 7

ejeong
All-Star
All-Star

I need this as well.

I used {assignee.email} but it returned only one of entitlement owners.

@ejeong @Joon ,

Please see if this helps.

${Users.get(${accessItems.find{it.ae.size()}.collect{it.ae.find{(it.approveby.toString())}}.find{it.approveby.toString()}[0]}).email}

 

 

Regards,
Avinash Chhetri

Can you let us know how to list all assignee pending for approval not approvedby?

ejeong_0-1666935476205.png

I am getting error like above..

 

Which email template you are trying 

in Workflow, we would like to send this to Requestor to inform who are pending for approval.

I tried like below 

 ${assignee?.collect{''+it.email}.join(', ')}

it's sending three email showing each entitlement owner which is something I am not expecting..

ejeong_0-1666936407480.png

How can we list up all assignee(s) in one email?