UI action for create standard change from Catalog task

Varun Sai
Tera Contributor

I am trying to add the UI action "Create standard change" from Catalog task. Below is working and displaying the standard change list but it updating the 'parent' field on the catalog task with the change number created. 

How to not update the change number on the parent field on the catalog task as it's replacing the RITM number.

 

action.setRedirectURL(new StdChangeUtils().getURLForTask(current, 'parent'));

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Varun Sai 

for catalog task the field which holds RITM number is request_item and not parent.

In your case why parent field is used to hold RITM?

Let parent field hold CHG

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar If you check OOB also the parent field is populated with the RITM#. 

it's not populating for the normal or expedite change, only for standard change it's populating. as we have current as 'parent'.
Would like to know how to just not update the 'Parent' field with the CHG#. 

 

@Varun Sai 

nope

OOB Request Item field on sc_task is populated with RITM

AnkurBawiskar_0-1697082419388.png

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

It's when you create the standard CR from catalog task. it's replacing the parent field with RITM # with the CHG#. The reason we want to not allow it to update to CHG# is it's not closing the RITM even if all the catalog tasks are closed as the parent the CHG is not closed. This is not happening for the Normal or emergency change. 

 

sorry if it was all confusing to you.