@if (currentTask()?.issueWasUpdated) {
} @if (config(); as cfg) {
@for (field of visibleFields(); track trackByIndex($index)) { }
{{ field.label | translate }} @switch (field.type) { @case (IssueFieldType.TEXT) { {{ getFieldValue(field, currentIssue()) }} } @case (IssueFieldType.LINK) { @if (getFieldLink(field, currentIssue()); as link) { {{ getFieldValue(field, currentIssue()) }} } @else { {{ getFieldValue(field, currentIssue()) }} } } @case (IssueFieldType.CHIPS) { @for (chip of getFieldValue(field, currentIssue()); track $index) { {{ chip.name || chip }} } } @case (IssueFieldType.MARKDOWN) {
} @case (IssueFieldType.CUSTOM) { } }
@if (hasComments()) {
@if (isCollapsedIssueComments() && cfg.hasCollapsingComments) {
@if (lastComment()) {

{{ T.F.ISSUE.ISSUE_CONTENT.LAST_COMMENT | translate }}

@if (getCommentAvatar(lastComment(), cfg); as avatar) { }
{{ getCommentAuthor(lastComment(), cfg) }} {{ T.F.ISSUE.ISSUE_CONTENT.AT | translate }} {{ getCommentCreated(lastComment(), cfg) | localeDate: 'short' : undefined : locale() }}
@if (getCommentBody(lastComment(), cfg); as body) { @if (cfg.issueType === 'JIRA') {
} @else {
} }
} } @else { @for (comment of comments() | sort: cfg.comments?.sortField; track $index) {
@if (getCommentAvatar(comment, cfg); as avatar) { }
{{ getCommentAuthor(comment, cfg) }} {{ T.F.ISSUE.ISSUE_CONTENT.AT | translate }} {{ getCommentCreated(comment, cfg) | localeDate: 'short' : undefined : locale() }}
@if (getCommentBody(comment, cfg); as body) { @if (cfg.issueType === 'JIRA') {
} @else {
} }
} }
}
}