in src/content/components/BugList/columnTransforms.js [136:181]
id(value, bug, props) {
if (!value) {
return "";
}
let postfix;
// If the whiteboard has the [omc] tag, it means this bug is directly synced
// with the Jira ticket. Comments in the bug will be mirrored in the Jira
// ticket. So if your ticket has multiple child bugs, you don't want to sync
// them directly with the ticket. You just want to add them to See Also.
// That means if a bug lacks the [omc] tag, it's probably one of multiple
// child bugs belonging to that ticket. This allows us to add an emoji to
// the ticket label, indicating that the ticket has multiple child bugs.
if (bug.ticket && !parseTags(bug).includes("omc")) {
// add an icon indicating that this ticket has multiple child bugs
postfix = (
<span
title={`This bug is not synced with its ticket, so it may be one of multiple child bugs.\nIf this is the ticket's only bug, add [omc] to the bug's whiteboard.`}
role="img"
style={{ cursor: "help" }}>
🧩
</span>
);
}
let className;
let title;
if (props.getBugWarning instanceof Function) {
let { type, message } = props.getBugWarning(bug);
if (type) {
className = [styles.warning, styles[type]].filter(Boolean).join(" ");
}
title = message;
}
return (
<>
<a
target="_blank"
href={OPEN_BUG_URL + value}
rel="noopener noreferrer"
className={className}
title={title}>
{numberWithSpaces(value)}
</a>
{postfix}
</>
);
},