Catalog Tasks not showing up on my RITM on a service catalog item

Kayla Keefer
Tera Contributor

Hello,

I have updated a service catalog item and the workflow to generate multiple tasks if multiple options are selected. My catalog tasks are not showing up when I test the form can anyone help? It has to do with if a user checks any of the access requests types on the form. If one or any of them are selected service catalog tasks should show under the RITM but they aren't showing if anyone has any ideas I would really appreciate it! I have searched and found other examples of this error but still cannot find a solution.

 

Kayla

 

9 REPLIES 9

You shouldn't/don't need to pass the 'current' parameter in the function call or definition, so take that out.  Also replace your if condition with

 if(current.variables.cli_access == 'true'){

You can use a Condition instead of the script in this case, but not both.  If you go with the condition, it needs to read more like Variables AWS Access Request CLI Access is True.  acess_type is a label, so there's no value assigned to it.  On the check for multiple boxes, follow the same Condition or Script format but your if test will be

if(current.variables.cli_access == 'true' && current.variables.console_access == 'true' && current.variables.codecommit == 'true' ){

 

Ok I will try that thank you!

Hi I decided to go with just the conditions for the IF statements but it still isn't working. The If statements run but not the catalog tasks.

This is the form

find_real_file.png

and here are my catalog tasks for the three options console access, cli access, and codecommit access.

find_real_file.png

find_real_file.png

 

find_real_file.png

and here are the variables on the form.

find_real_file.png

You've got an extra 'variable' in the short_description assignment.  Current is the RITM, so, the syntax to reference a variable on a task assignment is the same as the if statement - current.variables.cli_access - which in this case will allways add 'true' to the short_description since the task isn't created unless the box is checked.  This might have shown up on the View Workflow - you should have seen the blue line coming out of the if activity, then maybe the task activity was red due to the variable not being found.  If you hover over an activity in this running workflow view sometimes there is an error message that can help you see what's wrong. 

Ok thank you.