- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 07:29 AM
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.
Thank you in advance.
Regards,
Jocelyn
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 05:38 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 01:21 PM
Hello,
Following along here, I was able to add Short Description to the left hand columns.
Please keep in mind, you must clear your browser's cache, in order to see any changes. What I do is open a new in private browser window.
Example of this working with Add Short Description as a column:
Two areas in the sn_chg_soc.change_soc UI script changed:
Add:
COLUMN: {
CONFIG_ITEM: "config_item",
DURATION: "duration",
NUMBER: "number",
SHORT_DESCRIPTION: "short_description"
},
…
And in the Column config section add:
{
name: SOC.COLUMN.SHORT_DESCRIPTION,
label: "Short Description",
align: "left",
tree: true,
width: 160,
min_width: 160,
resize: true,
template: function(content) {
return "<span>" + content.short_description + "</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>";
}
}
One area in the sn_chg_soc.data UI script was added:
In the recordEvent class, add this line:
short_description: record.short_description ? record.short_description.display_value : "",
For the config panel where the user can toggle a column from showing up or not:
UI Macro:
aside_config_body
Add:
<!-- Show Short Description column -->
<li class="state-disable-bg">
<div class="sn-widget-list-content">
<label class="sn-widget-list-title" for="durationColumnOption">Short Description</label>
</div>
<div class="sn-widget-list-content sn-widget-list-content_static">
<span class="input-switch">
<input id="shortDescColumnOption" type="checkbox" name="shortDescColumn" ng-model="showShortDesc" ng-change="updateColumnLayout('short_description')"/>
<label aria-hidden="true" class="switch" for="shortDescColumnOption"/>
</span>
</div>
</li>
UI Script:
sn_chg_soc.config
Add:
$scope.showShortDesc = configService.showShortDesc;
Add:
"Short Description": "Short Description",
Add:
} else if (SOC.COLUMN.SHORT_DESCRIPTION === columnId) {
configService.showShortDesc = !configService.showShortDesc;