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

RamSagar
Tera Guru

Hi JLeong,

Did the requirement for adding the assignment group to the change scheduler worked?

if yes, could you please help what are all the scripts need to update.

 

Thanks in Advance.

Ram

Hi Ram,

We didn't proceed updating the  UI page and UI script. We keep them as is.

Sorry

Michal28
Tera Contributor

Did anyone ever solved this issue? we have the same requirement 

Hello,

As per my requirement, I have been asked to add the assignment group column in the change schedule.

To achieve this I have customised "change_soc" ui script:

added the below mentioned script after line 143 ( $scope.gantt.config.columns = [ )

place it accordingly as per your need:

{ name: SOC.COLUMN.ASSIGNMENT_GROUP,
label: i18n.getMessage("Assignment Group"),
align: "left",
tree: true,
width: 160,
min_width: 160,
resize: true,
template: function (content) {
return "<span>" + content[SOC.COLUMN.ASSIGNMENT_GROUP] + "</span>";
+ "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' class='select-task icon-target'"
+ "data-original-title='" + msgSelectRecord + "'"
+ "</span>";
}},

+ Modify the "data" UI Script also to fetch the required data

assignment_group:record.assignment_group ? record.assignment_group.display_value : "",

and then add the Assignment group field in the corresponding change schedule definition.

Clear your browser cache and check it again. You should be able to see the assignment group field.

Give a try 🙂

Good luck

Hi @Sree Sudhan , thank you this worked, except I would like to hide Configuration Item when it loads and allow a user to to show it if they would like.  I'm not sure on the syntax or placement for the code.  Any suggestions?

 

find_real_file.png