How to get Child ticket number in Notification

Community Alums
Not applicable

Hi Team,

 

I am creating a child ticket in sc_req_item table using cart method (see below script). I need to get that child ticket number in custom Notification( The notification is fired through workflow activity (create Event) ).

Please let me know how can I get that child ticket number in notification subject. I was trying (current value) it's giving parent number. please anyone help here with the solution.

 

var cartId = GlideGuid.generate(null);
    var cart = new Cart(cartId);

    var item = cart.addItem('3ddb64208762d950dbd1a8ad3fbb3582', 1);

    cart.setVariable(item, "u_imo_monitoring_services", "monitoring services");
    cart.setVariable(item, "u_monitoring_services", "dynatrace");
    cart.setVariable(item, "u_request_type", "new");
    cart.setVariable(item, "product_service", "Modern Web");
    cart.setVariable(item, "u_touchpoint_id", current.variables.cmdb_ci);
    cart.setVariable(item, "u_estimated_delivery_date", current.variables.expected_delivery);

    var rc = cart.placeOrder();
1 REPLY 1

Naga Ravindra R
Kilo Sage

Hi @Community Alums 

 

How are building relationship between parent ritm and child ritm, is there any field you are using?

Are you storing in any field on the RITM (child ticket number).

 

can you share the details?