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

Gurpreet07
Mega Sage

Hi Stela,



When you are creating child items , simply assign parent to it.



var grRItm = new GlideRecord('sc_req_item');


grRItm.initialize();


grRItm.parent = 'sys_id_of_parent' ,


...


.;


grRItm.insert();


Hey ,


i have created one field parent request item ,but not able to select the RITM No.


Its showing list


Gurpreet07
Mega Sage

If the child RITMs been created automatically by workflow .. then you could update the existing child RITM and assigning parent to them.


Gurpreet07
Mega Sage

No need to create a custom field. just make assignment like child.parent = 'sys_id_of_parent' and then include Related list of parent RITM.


Configure related list of RITM and include     Requested Item -> Parent


Hi Gurpreet ,



I have created one reference field parent request item and when selecting any RITM , i am not able to select it .