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

Arpan Baishya
Kilo Sage

Hi @Varun Sai,

 

Here's something I observed. Both the Request item and Parent fields usually refer to RITM records and that's quite natural since catalog tasks are always linked to a particular RITM. Now, if it would be okay to do so, you may consider creating a new reference field that points to the Change Request table (just like how Incident and Problem tables do). And use that field name over here.

 

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

P.S. Make sure that the business process being followed here has been thoroughly assessed and that there is a genuine need to create standard changes from catalog items.

I was thinking of proposing the same solution by creating a new reference field on the catalog task similar to what we have on incident and problem.