{tct('[author] [action] this issue to [assignee]', {
action: isAutoAssigned ? t('auto-assigned') : t('assigned'),
author,
assignee,
})}
{data.integration && (
{t('Assigned via %s', integrationName[data.integration])}
{data.rule && (
: {data.rule}
)}
)}
);
}
function getEscalatingMessage(data: GroupActivitySetEscalating['data']) {
if (data.forecast) {
return tct(
'[author] flagged this issue as escalating because over [forecast] [event] happened in an hour',
{
author,
forecast: data.forecast,
event: data.forecast === 1 ? 'event' : 'events',
}
);
}
if (data.expired_snooze) {
if (data.expired_snooze.count && data.expired_snooze.window) {
return tct(
'[author] flagged this issue as escalating because [count] [event] happened in [duration]',
{
author,
count: data.expired_snooze.count,
event: data.expired_snooze.count === 1 ? 'event' : 'events',
duration: