Content
View differences
Updated by Niels Lindenthal 8 days ago
**As** a helpdesk agent project manager
**I want to** send notifications to people involved notify project roles in a work package workflow custom workflows
**so that** I don't have to write and set standard answers manually. can automate more actions
**Acceptance criteria**
* In Administration -> Work packages -> Custom actions -> {_Custom action A_} there is another action `Comment`.
* Selecting a the action Comment opens a long text field. In this long text field a notification text is added.
* The comment template allows macros to notify users:
<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p"><br data-cke-filler="true"></p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Macro</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Macro status</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Involved persons</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Author</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Author</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Assignee</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Assignee</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Accountable</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Accountable</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Watcher</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Watcher</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">⚠️new</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Project members</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Specific user</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><mention class="mention" data-id="3" data-type="user" data-text="@Niels Lindenthal">@Niels Lindenthal</mention> </p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Specific group</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><mention class="mention" data-id="16740" data-type="group" data-text="@OP Product Team">@OP Product Team</mention> </p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Project roles</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@projectRole:"Project initiator"</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">⚠️new</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Project attributes</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@projectAttribute:"Project sponsor"</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr></tbody></table></figure>
text include @mentions such as
* Triggering Relative to the action adds the template text into the comment field (edit mode).
work package: `@%wp-value.Author%`, `@%wp-value.Assignee%` or `@%wp-value.Accountable%` or `@%wp-value.Custom-Field-A-of-type-User%`.
* The user can then change the text before submitting the comment.
Relative to a project attribute: `@%project-attribute.Project-Attribute-of-type-User%`,&nbsp; `@%project-role:tester%`.
* The users mentioned in the template text are notified.
**I want to** send notifications to people involved
**so that** I don't have to write and set standard answers manually.
**Acceptance criteria**
* In Administration -> Work packages -> Custom actions -> {_Custom action A_} there is another action `Comment`.
* Selecting a the action Comment opens a long text field. In this long text field a notification text is added.
* The comment template allows macros to notify users:
<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><thead class="op-uc-table--head"><tr class="op-uc-table--row"><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p"><br data-cke-filler="true"></p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Macro</p></th><th class="op-uc-table--cell op-uc-table--cell_head"><p class="op-uc-p">Macro status</p></th></tr></thead><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Involved persons</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Author</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Author</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Assignee</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Assignee</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Accountable</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Accountable</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Watcher</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@workpackageValue:Watcher</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">⚠️new</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Project members</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Specific user</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><mention class="mention" data-id="3" data-type="user" data-text="@Niels Lindenthal">@Niels Lindenthal</mention> </p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Specific group</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><mention class="mention" data-id="16740" data-type="group" data-text="@OP Product Team">@OP Product Team</mention> </p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">Project roles</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@projectRole:"Project initiator"</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p">⚠️new</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Project attributes</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><code class="op-uc-code">@projectAttribute:"Project sponsor"</code></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><br data-cke-filler="true"></p></td></tr></tbody></table></figure>