-
IssueEditModal.tsx was hardcoding [D-comments] for all state changes. Changed it to use a map:
if (result.comment) { if (result.comment) { const prefixMap: Record<string, string> = { ASSIGN: '[A-comment]', START: '[O-comment]', DUPLICATE: '[D-comment]', JUNK: '[J-comment]', CLOSE: '[C-comment]', RESOLVE: '[R-comment]', VERIFY: '[V-comment]', REOPEN: '[N-comment]', NEED_INFORMATION: '[I-comment]', }; const prefix = prefixMap[result.action] ?? '[I-comment]'; await addIssueComment(issue.id, `${prefix} ${result.comment}`, 'INTERNAL'); } } -
rksuma@Ramakrishnans-MacBook-Pro sztab % git add frontend/src/components/issues/IssueEditModal.tsx git commit -m "SZ-146: Fix workflow comment prefixes - A/O/D/J/C/R/V/N/I-comments" git push origin wolnosc [wolnosc 5f208c1] SZ-146: Fix workflow comment prefixes - A/O/D/J/C/R/V/N/I-comments 1 file changed, 15 insertions(+), 1 deletion(-) Enumerating objects: 13, done. Counting objects: 100% (13/13), done. Delta compression using up to 12 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 843 bytes | 843.00 KiB/s, done. Total 7 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0) To https://tigase.dev/sztab.git 072ed2f..5f208c1 wolnosc -> wolnosc rksuma@Ramakrishnans-MacBook-Pro sztab %
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Version |
1.10.1
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
Problem Internal comments are prefixed with [D-comment] in the issue history. Expected prefix is either [A-comment] for admin or a label reflecting the actual comment visibility (e.g. [Internal]). To investigate Trace where the comment prefix is generated in the backend — likely in the comment creation service or the audit log writer. The "D" may be deriving from the DEVELOPER role rather than the comment type or user type.