- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2017 04:22 PM
Hi,
We have a group approval for Change Requests, this approval goes to the assignment group members for approval.
However what I would like to do is only for the approval to go to those members within the assignment group who have the role called "Change Approver" which I have created, I know I could create separate groups but I wish to avoid doing so.
Has anyone ever used such a script to do this and is it possible?
Any help appreciated.
Cheers.
Nabeel
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2017 02:20 PM
Hi Nabeel,
This is what i have tested and it works fine for me, are you having the required group assigned before workflow starts. I have just tested with this setup and it's working. I would have one 'Wait for Condition' to make sure assignment group is there before sending to approval, like below.
Please make sure you pass the correct sys_id of your role.
Result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2017 02:29 PM
Thanks Shishir the sys_id of the 'change_approver' is definitely correct. The assignment group in my case is already assigned before the workflow begins if that helps?
Thanks again

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2017 02:38 PM
In that case it should work then. Not sure what's wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2017 02:51 PM
I figured it out!! I was using 'Approval Group' workflow activity rather than 'Approval User'..
Shishir, thank you so much for you time and helping me I really appreciate it. One day hopefully I can be good at scripting as you!! Any tips ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2017 10:18 PM
Great Nabeel, It worked for you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2017 05:24 PM
You can use something like this current.u_requested_for != gs.getUserID() && gs.hasRole('itil')
or I believe there is an option called conditions inside of your workflow activies.