How can we add more fields on EVAM Data set card in OOTB "Project Workspace"

SS72
Tera Contributor

I have an requirement to add more fields on EVAM data source card. I have tried it but it is now taking more than three fields. 

For more details please find the attached screen shot.

1. View Template 

2. Card.

 

View template: 

{
"component": "now-card-evam-record",
"staticValues": {
"highlightedHeaderIcon": {
"translatable": false,
"key": "status-fill"
},
"highlightedHeaderBkgColor": {
"translatable": false,
"key": "positive"
},
"subtitleIcon": {
"translatable": false,
"key":"calendar-fill"
},
"imageType": {
"translatable": false,
"key":"image"
},
"subtitleImageType": {
"translatable": false,
"key":"avatar"
},
"detailLabelOne": {
"translatable": true,
"key":"Start Date"
},
"detailLabelTwo": {
"translatable": true,
"key":"Percent Complete"
},
"detailLabelThree": {
"translatable": true,
"key":"State"
},
"detailLabelTFour": {
"translatable": true,
"key":"end_date"
}
},
"mappings": {
"highlightedHeaderLabel": "status",
"textHeaderLabel": "",
"titleLabel": "short_description",
"imageURL": "photo",
"subtitle": "project_manager",
"subtitleAvatarName": "project_manager",
"subtitleAvatarURL": "project_manager.avatar",
"detailValueOne": "start_date",
"detailValueTwo": "percent_complete",
"detailValueThree": "state",
"detailLabelTFour": "end_date"
},
"actionMappings": {
"mainActions": [],
"overflowActions": [
],
"clickAction": "navigation"

workspace.png

5 REPLIES 5

TroySasso
Tera Expert

There is a KB Article from Nov 2025 that mentions modifying script includes;

 

How to customize the Project Cards in Project Workspace

 
Issue

In older Project Workspace versions, the Project Cards on the Home Page could be altered with the corresponding "View Template" (sys_ux_composite_data_template) record.

This has since changed and now it requires and overridden Script Include to reflect the changes.

Release

Project Workspace (sn_pw)

Resolution

Follow the below steps to get this set up:

1. Go to the following Script Include:
https://INSTANCE.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=ccdb2086f9678210f877826b...

2. Find the "_createCard" function and Copy the entire block of text

3. Now go to this Script Include:
https://INSTANCE.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=e79b6086f9678210f877826b...

4. On line 3, Paste the copied text

5. Now find the following text, for example, to change the heading:

"name": {
"label": projectGR.getDisplayValue('short_description'),
"size": "sm",
"lines": 2
},

6. You can change "short_description" to whatever you want, like "number".

7. Save the record and see the results