- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 05:53 AM
How can I check if current user is same as assigned to user in business rule.
I have used gs.getUser().isMemberOf(current.assigned_to) and
(gs.getUserID() == current.assigned_to)
But both are returning false
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 06:01 AM
Greetings Sindhu21,
The 2nd one should very much work. I have a script in use right now for -
current.assigned_to == gs.getUserID();
The isMemberOf doesn't work because that checks group membership. Check your values with the script debugger by throwing in a break point.
-Andrew Barnes
Join me at Developer Blog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 12:27 PM