How to set assignment group from a Catalog Item

jmbrake
Kilo Expert

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;

1 ACCEPTED SOLUTION

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


View solution in original post

16 REPLIES 16

Hi Joan, most of the times a global business rule is often a bad design decision so it sounds like you make a good call by inactivating it.



The script include on itself will not do nothing unless it gets called by some other script. For instance, a business rule. . Often, when you're dealing with situations like this, where you have many tables, which all inherit from the same base table (task table on this case) and you want a behavior to occur based on fields which also belong to the base table, then you have the option to define the business rule at the base table level (task on this case). For this business rule you could also define a condition on which you use the sys_class_name field to filter out the tables for which the business rule should not apply.



I hope this helps!



Thanks,


Berny


Deepak you saved my sanity.



Seems like field watch can prove useful. I had the same issue as OP and by doing watch I was able to identify a BR that was overwriting my changes and now all works fine.




Cheers



Greg