UI Action to set Assignment group and Assigned to, to the Opened by user.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2013 06:48 PM
I am looking to have a UI Action that would set the Assignment Group and the Assigned to fields to the Opened by user and the group and will take the log on user back to the list view. I am not to good at JavaScripting. If I could get some help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2013 06:15 PM
Setting the Assigned to field to the opened by user as well as redirecting to the list view should be straight forward. However most likely since your Assigned to Field is dependent on assignment group you might run into some issues. Users can be in multiple groups, unless you have a "primary" group, or your users are only in one group, you would have no way to know what group to assign it to.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2013 07:37 AM
Yes you are correct, I would need a primary group so I am working on that as we speak. Now once that is all done and in place how would I go about making this happen?
And Thank you in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2013 11:14 AM
Take a look at this SNC Guru Post it might be helpful to you:
http://www.servicenowguru.com/system-ui/ui-macros/add-me-ui-macro-user-group-fields/
Credit goes to Mark Stanger for that one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2013 02:05 PM
I now set my user with a primary group by adding a field in the grmember table. Now any sample scripts that would let me set the Assigned to fields to the Opened by user and then look at the grmember table to find the Opened by user and the group that the primary field is true...
Any help will be great.