- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 10:12 AM
hi guys,
i need script for workflow catalog task when selects any application in i need to automatically assign to application support group
pls help me guys.
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 01:46 PM
Thanks. Try below in the Catalog Task workflow activity.
var selectedapplication= current.variables.application;
var getgrp=new GlideRecord('cmdb_ci_appl');
var getname=getgrp.addQuery('sys_id',selectedapplication);
getname.addOrCondition('name',selectedapplication);
getgrp.query();
if(getgrp.next())
{
task.assignment_group=getgrp.support_group;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 10:24 AM
Hi Suresh,
Try the below script in your catalog task activity
if(current.variables.variable_name == 'xyz_application_sys_id');
{
task.assignment_group = current.variables.variable_name.group_field_name; //Dot-walk to get support group
//current.variables is to access variables
//variable_name is your application variable name
//group_field_name is your support group field name in application record
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 10:33 AM
not working sai kumar
thanks for your cooperation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 10:38 AM
Could you please post your script here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 10:47 AM