Viewing related items on a catalog task

germc
Giga Expert

Hi guys,

Im looking to see if there is a way to view the Request Items from a Service Catalogue Request on the individual Tasks.

These can be viewed on the actual 'Request' (printscreen below) but it would be great to be able to view these on the Tasks further down the chain.

This would be needed so that when a few tasks under the same request is logged to the same team, the analysts that picks up the first one can view if there are any other related tasks too.

I hope Im making sense. Is this possible?


1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi,



Go to system definition->relationship


Applies to table:catalog task[sc_task]


Queries from :Requested item[sc_req_item]


Script:


current.addQuery('request', parent.request_item.request);



Please let me know the outcome.



Thanks,


Pradeep Sharma


View solution in original post

15 REPLIES 15

Thanks Pradeep,


That worked perfectly.. Thank you so much.


Sorry to push my luck, is there a way to adjust that so that we can view all request items from the user in the 'requested_for' field?


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

I am Glad I can be helpful


Please follow the below steps if you want it to show on "Requested_for"


Applies to table:catalog task[sc_task]


Queries from table:Requested item[sc_req_item]


Script:


current.addQuery('request.requested_for', parent.request_item.request.requested_for);



Please let me know the outcome.



Cheers,


Pradeep Sharma


Thank you Pradeep,


That has worked great, thanks a million


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Perfect



Thanks,


Pradeep Sharma


I'm hoping this thread is still "active".   I'd like to know what the query would be to also get the Request (sc_request) associated to the Requested Item.   I believe I use the same:



Applies to table:catalog task[sc_task]


Queries from table:Requested item[sc_req_item]



but I'm not sure of the proper query. I'm guessing:


current.addQuery('number', parent.request_item.number);


but this didn't seem to help pull in the sc_request number for the sc_req_item shown in the report, at least I see many rows where the Request value is missing.



Thanks