# Feature PIR-2 - Custom actions: Notify people involved in a workflow with pre-defined work package comments

Project: Project Inititation Requests
Status: in specification
URL: https://community.openproject.org/work_packages/PIR-2

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / Custom actions |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan | Enterprise / Professional (PRO) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Labor costs |  |

## Description

**As** a helpdesk agent  
**I want to** send notifications to people involved in a work package workflow  
**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>

  - Triggering the action adds the template text into the comment field (edit mode).

  - The user can then change the text before submitting the comment.

  - The users mentioned in the template text are notified.
