Workflow that routes tasks to one of two groups

Thereza Van der
Tera Contributor

Hi everyone

 

I am trying to create a workflow that will do the following:

 

On the portal there is an item called 'Provision new server'. There is no approval needed but users can choose between Linux or Windows.

 

When they select 'Linux' it should go to the 'BST-AIX Linux VMWare Storage Support' group.


When they select 'Windows' it should go to the 'BST-Microsoft Exchange Support' group.

 

I had no idea where to start with the workflow so I took an existing workflow as my base. Please don't laugh, at least I tried. I would appreciate any advice on this.

 

Regards
Thereza

2 REPLIES 2

SAI VENKATESH
Tera Sage
Tera Sage

Hi @Thereza Van der ,

 

You can write if condition to check whether the user selected is linux or windows based upon the value you can create catalog task and assign to particular assignment group.ca13.PNG

In If condition you can add the following code :

answer = ifScript();

   function ifScript() {
	if (current.variables.location=='accessories') { //change to your requirement like if linux was selected 
         return 'yes';
      }
     return 'no';
   }

in catalog task you can add the group in the fulfillment group field.cn14.PNG

 

If you got struck please let me know 

 

Thanks and regards

Sai venkatesh

AshishKM
Kilo Patron
Kilo Patron

Hi @Thereza Van der , 

The workflow pic you shared looks good to me and the IF condtion you might checking OS for UNIX/LINUX. 

Attache this workflow with catalog item and test, let us know if its working for both OS and task is assigning to respective group.

 

Please share any other issue [ with screen shot ] you are observing with this workflow.

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution