Catalog Tasks not showing up on my RITM on a service catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 02:34 PM
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
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 03:41 PM
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' ){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2021 04:20 PM
Ok I will try that thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 08:03 AM
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
and here are my catalog tasks for the three options console access, cli access, and codecommit access.
and here are the variables on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 09:55 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 10:18 AM
Ok thank you.