how to change Assignment group of catalog item based on variable

Akki1
Tera Contributor

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

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

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

@Jaspal Singh I'm not referring to catalog task assignments.

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?

Use an If activity followed by Set Values activity in  your workflow.

 

Regards,
Sumanth

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