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

HI @Sree Sudhan ,

Did you get a chance to look at my question on your reply?

 

Hi kkswamy,

I though that i have already responded you. No changes are required in the UI Page. I guess you didn't add the assignment group field to the corresponding change definition, that is the reason you might be getting results as undefined.

Even if you made changes to the UI script, unless you add the particular field value in the "Left Column Fields" under the Record Summary Tab in the corresponding Change Schedule Definition, your result will be shown as undefined. If you have already done this and still if the value is undefined,You can share the Changes which you did on UI Script.


Moreover, after making changes to the UI script, always try clearing out your instance cache. 

Hope this is clear.

 

Regards,
Sudhan

Hi @Sree Sudhan ,

I am getting the value as "undefined" after i cleared my cache as well,

PFA screenshots about the modifications i did so far.

Still no luck.

Just FYI..

Like said before, ServiceNow has an enhancement request for this and HI support confirmed that, they are targeting this enhancement for "Rome" release version when change request moved to workspace type.

Regards.

Kotaiah Swamy Kondru.

Hi @kkswamy @kkswamy ,

In your change_soc ui script

Hope you have added the assignment group column in this below mentioned format 

ASSIGNMENT_GROUP:"assignment_group",

and then modify your $scope.gantt.config.columns part with this below mentioned script and give a try

{ name: SOC.COLUMN.ASSIGNMENT_GROUP,

label: i18n.getMessage("Assignment Group"),
align: "left",
tree: true,
width: 115,
min_width: 115,
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>";
}},

 

Regards,
Sudhan

Dear Sudhan,

I tried it also, but it is all not willing to cooperate. I also get Undefined. it seems that the value (e.g. assignment_group) is not in the content-object.

it does hold content.number and content.sys_id.
it seems a bit far to query each time to the record.

I only did some changes in the "change_soc" like you mentioned in above post.
you also mentioned:
+ Modify the "data" UI Script also to fetch the required data

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

where can I find this, because my guess is that this is the cause.

thanks,

Peter


Furthermore I have 1 other request and that is to use the "on/off" button in the config-screen (like there is for e.g. config_item and duration)
Do you perhaps also have an idea for that?