The CreatorCon Call for Content is officially open! Get started here.

How to add columns to the Change Schedules?

JLeong
Mega Sage

Hi All,

We're upgrading to London soon, and we need to change or add columns to the Change Schedule chart. Instead of showing the Configuration Item and Duration, we would like to replace it with the TItle and  Assignment Group.

find_real_file.png

Thank you in advance.

 

Regards,

Jocelyn

 

 

1 ACCEPTED SOLUTION

JLeong
Mega Sage

Hi Sachin,

Thanks for the email, but that's not the column I was referring. 

As per ServiceNow, in order to customize the page, you need to customize the following scripts

1. UI page - sys_id=a4fac4c7c3310300b6dcdfdc64d3aef8
2. UI script -Sysy_id=01109679d7e01300532c24837e6103c2
3. UI script -sys_id=6ff41e3ac31303009f93dfdc64d3aebb

View solution in original post

50 REPLIES 50

around line 50-58 (in the ui-script sn_chg_soc.data)

you can find 

config_item: record.cmdb_ci ? record.cmdb_ci.display_value : "",

here you can enter the field-item and the value.

then you dont receive an undefined anymore.

I did notice that after you have done this, you still need to add them in the fields of the definition

(as sachin.namjoshi also mentioned in the post above)

Please navigate to chg_soc_definition.LIST table and find your change schedule record.

Open your record and add,remove columns in Left Column, Right Column fields.

 

please mark if helpful

Hi Lucy, did you solve this?

Lucy Vagnoni
Tera Contributor

Thanks so much Peter.  Appreciate the quick response! Will give it a try.

Hi Lucy did you solve it with the short description field?

Hi All,


I also followed the steps and Im trying to input Short Description showing as Undefined.

Any ideas?

UI Script: sn_chg_soc.data

Approx. line 57

short_description: record.short_description ? record.short_description.display_value :"",

 

UI Script: change_soc

Approx. line 163

{
                            name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                return "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' " +
                                    "data-original-title='" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "'>" +
                                    content[SOC.COLUMN.SHORT_DESCRIPTION] +
                                    "</span>";
                            }
                        },

I have also updated the Schedule Definition Columns with Short Description.
Cleared cache.

Still showing undefined.