Agile board - color in Theme like in epics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 10:52 AM
On the agile board in Backlog or sprint planning, stories related to an epic show the color of the epic.
We would like to be able to set color in story themes too, but it's not enough to just create a "Color" reference to color definition attribute.
How can we configure the page to show the color of the themes as well as that of the epics?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 01:03 PM
- Extend the existing Agile Board UI behavior
- Modify the story card UI to display theme colors
- Ensure theme colors are stored properly
- Apply CSS to reflect the colors
ɪꜰ ᴍʏ ᴀɴꜱᴡᴇʀ ʜᴀꜱ ʜᴇʟᴘᴇᴅ ᴡɪᴛʜ ʏᴏᴜʀ Qᴜᴇꜱᴛɪᴏɴ, ᴘʟᴇᴀꜱᴇ ᴍᴀʀᴋ ᴍʏ ᴀɴꜱᴡᴇʀ ᴀꜱ ᴛʜᴇ ᴀᴄᴄᴇᴘᴛᴇᴅ ꜱᴏʟᴜᴛɪᴏɴ ᴀɴᴅ ɢɪᴠᴇ ᴀ ᴛʜᴜᴍʙꜱ ᴜᴘ.
ʙᴇꜱᴛ ʀᴇɢᴀʀᴅꜱ
ꜱʀᴇᴇʀᴀᴍ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 01:10 PM
I have added the color in the for the field but the color does not show
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 02:37 PM
@DreDay3000 I think ServiceNow does not natively support theme-based color coding like epics, so you need to extend the UI logic.
- Navigate to System UI > Scripts - Client.
- Look for "Agile Board Renderer" or a similar script responsible for board UI.
- Modify the script to apply colors based on the theme.
Example of a Possible Client Script Override:
(function executeRule(current, gForm, gSNC) {
var epicColor = current.epic.color; // Get Epic color
var themeColor = current.theme.color; // Get Theme color
if (themeColor) {
gForm.setStyle('short_description', 'background-color:' + themeColor + ' !important');
} else if (epicColor) {
gForm.setStyle('short_description', 'background-color:' + epicColor + ' !important');
}
})(current, gForm, gSNC);
ɪꜰ ᴍʏ ᴀɴꜱᴡᴇʀ ʜᴀꜱ ʜᴇʟᴘᴇᴅ ᴡɪᴛʜ ʏᴏᴜʀ Qᴜᴇꜱᴛɪᴏɴ, ᴘʟᴇᴀꜱᴇ ᴍᴀʀᴋ ᴍʏ ᴀɴꜱᴡᴇʀ ᴀꜱ ᴛʜᴇ ᴀᴄᴄᴇᴘᴛᴇᴅ ꜱᴏʟᴜᴛɪᴏɴ ᴀɴᴅ ɢɪᴠᴇ ᴀ ᴛʜᴜᴍʙꜱ ᴜᴘ.
ʙᴇꜱᴛ ʀᴇɢᴀʀᴅꜱ
ꜱʀᴇᴇʀᴀᴍ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 02:53 PM
UI Scripts under System UI?