Request for multiple users - Reference variable for each user.

rafaelalves4337
Tera Contributor

I'm creating a Catalog Item form for users to request a new computer.

 

One person (manager) should be able to request that for multiple users, I have a Variable set that allows him to add more users to the same request.

 

Each user has a computer name associated with his account, that information is on cmdb_ci_computer table under "NAME".

 

This request should create an RITM for each user, I guess I need a Script include and Client Script to achieve that, right?

I tried to create scripts, but I'm not an expert with scripting, so I guess I'm doing something wrong.

Computer name (Computer_name) Reference (cmdb_ci_computer)

Location (Location) reference (cmdb_ci_computer)

 

Can someone give me some advice here? or a better solution for what I need?

 

Screenshot_91.png

7 REPLIES 7

Hi @rafaelalves4337 ,

 

did you try my solution? Is it not working?

I did not, is that a Business Rule? I did not understand where to write that code.

rafaelalves4337
Tera Contributor

The requirement is to open one RITM for each selected user in "Also request for", but the variable Computer_name should be automatically populated with the computer name of each user, I was thinking to leave it blank and set the script to populate only "On submit", but I tried to first create the script "on change" to check if it's working.