How can we add an "add" button on the related list of a change request (through the list control we have an option to add/omit the "new" and "omit" buttons but not an add one

kanchu
Kilo Contributor

How can we add an "add" button on the related list of a change request (through the list control we have an option to add/omit the "new" and "omit" buttons but not an add one)

Thank you.,

1 ACCEPTED SOLUTION

You mean like this?



find_real_file.png



I'm showing one OOB in Helsinki P1.



find_real_file.png



Check the URL below (replacing YOURINSTANCE with your instance name.)



https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_ui_action.do?sys_id=77688cfe6f35f100e5f2b3312...


View solution in original post

9 REPLIES 9

The script condition in this   UI action is preventing it to be visible on the form. Thank you for your time veena and tomasi


Hi Chuck,



How can I do the same thing on incident. I mean how can I add a add button on affected CI related list which is on incident.



Regards,


Uzma


Hi Uzma,



You can add Add button on Incident Affected Ci related list.Please follow these steps


  1. Go to sys_properties.list in navigator, and search for   property com.snc.task.associate_ci
  2. In the value field provide the Incident table as shown in the screenshot below
  3. Now go to Add Ui action and modify the condition from (new ChangeProposed(parent)).canAddCI() && current.canCreate() && RP.isManyToMany() && parent.active == true && gs.getProperty('com.snc.task.associate_ci').indexOf(parent.sys_class_name) > -1 to

(new ChangeProposed(parent)).canAddCI() && current.canCreate() && RP.isManyToMany() && parent.active == true && gs.getProperty('com.snc.task.associate_ci').indexOf(parent.sys_class_name) > -1||14



Note:14 is the index of strin incident in the properties



find_real_file.png



Hope this helps


Please Hit Like/helpful/correct based on the impact!


Hello Priyanka

 

 for the change request related list "affected ci add" ui action the below condition

(new ChangeProposed(parent)).canAddCI() && current.canCreate() && RP.isManyToMany() && parent.active == true && gs.getProperty('com.snc.task.associate_ci').indexOf(parent.sys_class_name) > -1 

I am trying to show add button for only change request states new, assess and authorize. but for above condition it is only showing in new state, can you advice how I should show it on assess and authorize also?

There is already a New button on the Affected CI list, unless someone either configured the list control or you do not have create access on the cmdb_ci table. FYI - the "New" button will create a new CI. The Edit button creates a new relationship (link) between the task record (e.g. incident) and the CI. Don't go clicking New unless you want a New CI. Again, if Edit isn't there, someone either turned it off or you don't have create access to the task_ci table.