how to change Assignment group of catalog item based on variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2022 05:07 AM
HI,
I have a catalog item form and I'm asking a question (create/delete/modify) .
If create/delete option is selected I want the ticket to be assigned to some specific group and if modify is selected then it should assigned to some other group
- Labels:
-
Scripting and Coding
-
Service Creator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2022 05:11 AM
Hi Akki,
Assuming you are referring to Catalog Task assignments & you are using Catalog Task activity then you can try below
if(current.variables.variable_name=='Create' || current.variables.variable_name=='Delete')
{
task.assignment_group='ABC';
}
else if(current.variables.variable_name=='Modify')
{
task.assignment_group='XYZ';
}
//ensure you replace variable_name with correct variablename where you select Create, Delete or Modify
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2022 05:15 AM
When a ticket is created using this catalog item the ticket is assigned to some grp but i want if the user in the catalog form has chosed modify it should go to some other assignment group.
Just a bluff guess: is it anything related to service offering?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2022 05:19 AM
Use an If activity followed by Set Values activity in your workflow.
Regards,
Sumanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2022 05:21 AM
In that case if you are looking for assignment group on RITM & workflow is on RITM Table then you can use Run Script activity & try below
if(current.variables.variable_name=='Create' || current.variables.variable_name=='Delete')
{
current.assignment_group='ABC';
}
else if(current.variables.variable_name=='Modify')
{
current.assignment_group='XYZ';
}
//ensure you replace variable_name with correct variablename where you select Create, Delete or Modify