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-04-2025 12:47 PM
I have applied the below script but getting the same results:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 09:10 AM
could you help me with this UI Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 12:57 PM
Verify the Correct Field Name
- Check if current.theme.color and current.epic.color correctly reference the color field in the database.
- Use gs.info(current.theme.color); in a server-side script to verify if the color values are being retrieved correctly.
Apply the Style Correctly
- Instead of theme, apply the color to a DOM element that represents the theme in the Agile Board.
- Try setting the style directly on the field ID.
Try this Sample Client Script (Type: onLoad) instead:
(function executeRule(gForm, gSNC) {
var epicColor = gForm.getValue('epic'); // Get Epic reference
var themeColor = gForm.getValue('theme'); // Get Theme reference
// Ensure valid colors are set
var finalColor = themeColor ? themeColor : (epicColor ? epicColor : "#00008b");
// Apply background color using jQuery
if (finalColor) {
setTimeout(function() {
$("input[name='theme']").css("background-color", finalColor);
}, 500); // Adding delay to ensure DOM is loaded
}
})(gForm, gSNC);
ɪꜰ ᴍʏ ᴀɴꜱᴡᴇʀ ʜᴀꜱ ʜᴇʟᴘᴇᴅ ᴡɪᴛʜ ʏᴏᴜʀ Qᴜᴇꜱᴛɪᴏɴ, ᴘʟᴇᴀꜱᴇ ᴍᴀʀᴋ ᴍʏ ᴀɴꜱᴡᴇʀ ᴀꜱ ᴛʜᴇ ᴀᴄᴄᴇᴘᴛᴇᴅ ꜱᴏʟᴜᴛɪᴏɴ ᴀɴᴅ ɢɪᴠᴇ ᴀ ᴛʜᴜᴍʙꜱ ᴜᴘ.
ʙᴇꜱᴛ ʀᴇɢᴀʀᴅꜱ
ꜱʀᴇᴇʀᴀᴍ