Let approvers mention people in decision comments
Description
Problem
An approver cannot point a decision comment at the person who should read it. The approval starter and other people get no notification unless they watch the work item or page. A mention typed by hand shows as plain text, because the comment text is escaped. This makes it hard to get a quick answer to an approver's question or remark.
Change
-
In the decision comment field, typing
@and part of a name shows a list of matching people. The chosen person appears in the text as@<name>. This works in the panel, in approval lists, on the JSM portal and on the decision pages for external approvers (the email link and the Approval Portal). -
The list contains only people connected to the approval and its work item or page: the approval starter, approvers and delegates of user steps, in group and vote steps only people who have already decided and are visible in the approval UI, in Jira the work item assignee and reporter, in Confluence the page creator and the person who last modified it. There is no search across all users of the site.
-
A decision submitted through the Web API accepts mentions in its comment text. A mention of a person outside this list is skipped: the decision is saved, but that person is not mentioned.
-
In a separate decision comment (a work item comment in Jira, a reply in the approval's comment thread on the page in Confluence), a mention is a real product mention and sends a notification.
-
Everywhere else the decision text is shown (status comment, panel, email, Slack, Teams, PDF, webhook, Rovo), a mention shows as
@<name>without a notification. -
New option in the definition's "Decision comments" section: "Mention the approval starter". When on, every separate decision comment mentions the person who started the approval.
-
One comment can hold at most 10 mentions.
Out of scope
-
Mentions in decisions made with the decision buttons in email, in Slack and in Teams.
-
Commenting without making a decision.
-
Showing internal decision comments to mentioned JSM portal customers.
-
The author of the comment (AP-2567).
Acceptance criteria
-
In Jira and in Confluence, an approver picks a person with
@in the comment field, and with separate decision comments on, that person gets the product's mention notification. -
The list contains only the people named in Change. Typing the name of any other user finds nobody, also for a JSM portal customer and for an external approver.
-
In group and vote steps, the list contains only people who have already decided and are visible in the approval UI. Group members who have not decided yet and votes hidden from JSM customers do not appear.
-
An external approver picks a person from the list on the decision page from the email link and in the Approval Portal, and that person gets the notification the same way as for a decision made in the panel.
-
Approvers outside the Atlassian site (external approvers) do not appear on the list.
-
Web API: a decision with a mention of a person outside the list is saved, and that person gets no notification.
-
A mention typed by hand in the product's syntax (Jira
[~accountid:...], Confluence user link) still shows literally and notifies nobody. -
With separate decision comments off, a mention in the status comment shows as
@<name>and notifies nobody. -
With "Mention the approval starter" on, the starter is mentioned in every separate decision comment. When the approval was started by automation or by the app, the starter mention is left out.
-
A mention of a person without access to the work item or page does not block the decision, and the comment is still added.
-
A comment with more than 10 mentions is rejected with a clear message before the decision is saved.
-
Without
@and with the starter option off, decision comments in both products look as they do today.