How can I add "One of My Group Members" using Business Rules.

ayano
Giga Guru

I want to add choice Opened by is (dynamic) "One Of my Group Members" below.

find_real_file.png

However, I couldn't add there.

 

Now, this is the Business Rule that I created.

Script is below.

function groupMembers(grpName) {
var mbrs = new Array();
var grmember = new GlideRecord('sys_user_grmember');
grmember.addQuery('group.name', grpName);
grmember.query();
while (grmember.next()) {
mbrs.push(grmember.user.toString());
}
return mbrs;
}

find_real_file.png

And also, this is the Dynamic Filter Options that I created.

find_real_file.png

Then, it's got into Open by Groups, not into Opened by.

find_real_file.png

How should I make it?

 

 

1 ACCEPTED SOLUTION

Hi,

On the Dynamic Filter Option change the Reference table from:

Group [sys_user_group]

To:

User[sys_user]

 

 

View solution in original post

5 REPLIES 5

In the Dynamic filter change the referenced table

from: Group [sys_user_group]

to: User [sys_user]