How to create parent child relationship in service catalog

Stella5
Kilo Contributor

E.g RITM10078 is a parent ticket

RITM0089,RITM0097 is a child ticket .

How these ticket will be dependant .

9 REPLIES 9

ghsrikanth
Tera Guru

You can have a reference field on RITM table which refers to itself, and when you create the child tickets, make sure you assign the parent ticket sys_id to that reference field.


Its pretty common way of making the parent child relationship in the same table, its in core_company, cmn_location etc





Mark if it is correct or helpful, feedback is appreciated


Stella5
Kilo Contributor

Hey srikanth ,


How to do that ,


the customer who is working on servicenow .They want to create chid ticket .


On default view of requested item ticket , we dont have any deference field


You can create a new column sc_req_item with the name Parent Request Item - go to any requested item


Configure -> Table


Enter the column like below


Screen Shot 2016-03-31 at 10.03.12 AM.png


The new field will be available in the default form layout


It will be at the bottom above related lists


So use configure -> form layout to bring it to proper position


Open any RITM for ex: RITM0000001 and put RITM0000002 in the Parent Request Item


Open RITM0000003 and put RITM0000002 in the Parent request item



Screen Shot 2016-03-31 at 10.04.51 AM.png




Then Right Click on header-> Configure -> Related lists


Select the below related list from left sluschbucket, move to right



Screen Shot 2016-03-31 at 10.06.15 AM.png



Open RITM0000002, you will see the child items in the related list


Screen Shot 2016-03-31 at 10.06.38 AM.png




Mark if it is correct or helpful, feedback is appreciated


hey Srikanth , thanks for help.


In my Instance , not having requested item -parent request item in related list .