
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 02:38 PM
I'm using an Assignment rule to populate the "Assignment group" field, and thought I could set the "Assigned to" field to be the current user while I'm at it. I thought this would be a simple statement, like:
current.assigned_to = gs.getUser();
but this doesn't seem to be working. I can get this working with a business rule (user as Dynamic Default of "Me"), but would prefer to use an Assignment rule instead. Any ideas?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 06:56 AM
If you are going to use a Script, I don't think you can have anything populated in the User or Group fields. If you do, I think it ignores the script. Try blanking those two fields and use something like this for your script:
current.assigned_to = gs.getUserID();
current.assignment_group.name = 'Network';
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
This is correct. It does not like group handled in the "Assign To" tab and user handled in the "Script" tab. You can use one of those two tabs but not both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 08:10 AM
Beware that second line: current.assignment_group.name = 'Network'
That statement doesn't select an assignment group, it tries to change the name of the currently selected assignment_group to "Network".
However, if this is in a "before update" business rule, it will have no effect because the assignment_group object is not being updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 05:46 AM
current.assigned_to = gs.getUserID();
current.update();