- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2015 06:12 AM
I have a catalog item called "Self Assigned Task". I have created a Reference field called "AssignGrp" for this catalog item, which looks up the assignment groups. I would like to take the group selected during the Request process and have it follow through to the Task. I am using a workflow to populate other fields down to the Task level, but I cannot get the Assignment group to pass to the task. The top two lines work fine, the last one does not. Any help would be appreciated
task.short_description = 'Perform this ' + current.cat_item.getDisplayValue();
task.description = 'Perform this ' + current.cat_item.getDisplayValue();
task.assignment_group = current.variables.AssignGrp;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2015 10:46 AM
Hi Joan,
Could you try to find out if any other script is forcing blank value?
Might be some other business rule.
You can use field watcher for debugging purpose
http://wiki.servicenow.com/index.php?title=Field_Watcher#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2015 06:17 AM
Hi Joan,
I think that script should work. Could you verify that the name of your variable is AssignGrp and that it's a reference variable to the group table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2015 06:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2015 06:41 AM
It does and I don't see why it wouldn't be getting set. Does your assignment group field end up blank or populated with the wrong group? I'm wondering if there's some sort of business rule or assignment rule populating the field after you set it in the workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2015 06:44 AM
It ends up blank. The workflow is so basic that I have to believe something else is affecting it. It Starts - Runs the Catalog Task script - and then it Ends