Service Catalog Configuration Item LookUp

Priyanka Gupta
Mega Guru

I have a Catalog Item 'Loaner Laptop Request'. I am creating a task using a workflow and assigning it to the concerned team as soon as a user creates a loaner laptop request.

After the task has been assigned to the concerned team, I want to give them the power to assign a respective Configuration Item to the requester. The requirement is to show only 'In Stock Computers' in the Configuration Item lookup instead of all the CIs.

task.PNG

I tried writing a Dictionary Override -> Reference Qualifier with a custom condition on sc_task but I don't think this is a good idea because my application is in a global scope.dic_over.PNG

How should I achieve this?

1 ACCEPTED SOLUTION

Priyanka Gupta
Mega Guru

I created a JavaScript function and applied it to the reference qualifier to filter off of cmdb. It works like a charm. 🙂

View solution in original post

12 REPLIES 12

Teri Bobst
Mega Guru

Hi Priyanka, I do this same thing on multiple different tasks - but I use a reference variable - not the OOTB CI field on the Task form.



So, on your Loaner Laptop Request - you would have a variable of: Select Loaner Laptop (loaner_laptop) that is a reference table to your Computers CMDB table. Then you set an advanced reference qualifier on that variable to only show In Stock computers.



If you want the Task CI field set to the loaner for tracking, then you can set it easily in the items workflow with this line of code:



task.cmdb_ci = current.variables.loaner_laptop;



Hope this helps,


Teri


Thank you Terri! This is probably the easiest approach.


Priyanka Gupta
Mega Guru

I created a JavaScript function and applied it to the reference qualifier to filter off of cmdb. It works like a charm. 🙂