Content
View differences
Updated by Wieland Lindenthal over 2 years ago
**As** an OpenProject user
**I want to** use custom actions for a workflow
**so that** I can easily update the status from one status to the next and get team members notified, progress of the task updated etc.
**Acceptance criteria**
* Custom actions triggered by status change (by user, in a board etc).
* Trigger types:
* Trigger for one WP
* created (Event in after\_perform of WP Create service)
* updated (Event in after\_perform of WP Update service)
* status, assignee...
* relations
* file links
* attachments
* watchers
* deleted (Event in after\_perform of WP Delete service)
* "remotely called" (some code explicitly releases a trigger e.g. another automation rule)
* pass a original event identifier
* "on relation"???
* Out of scope: Trigger for general app events, such as "User was added, invited, blocked"
* Rule 1 (on AUFTRAG)
* Trigger: status change
* Condition: Type is AUFTRAG
* Action:
* Release automation trigger ("remotely called") for all WPs that have a "includes" relation with the current WP.
* Rule 2 (on FACHKONZEPT)
* Trigger: "remotely called"
* Condition:
* Type is FACHKONZEPT
* All related work packages with relation type "includes" have status "closed"
* Action: Set status to "closed"
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92651/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92653/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92652/content">
**I want to** use custom actions for a workflow
**so that** I can easily update the status from one status to the next and get team members notified, progress of the task updated etc.
**Acceptance criteria**
* Custom actions triggered by status change (by user, in a board etc).
* Trigger types:
* Trigger for one WP
* created (Event in after\_perform of WP Create service)
* updated (Event in after\_perform of WP Update service)
* status, assignee...
* relations
* file links
* attachments
* watchers
* deleted (Event in after\_perform of WP Delete service)
* "remotely called" (some code explicitly releases a trigger e.g. another automation rule)
* pass a original event identifier
* "on relation"???
* Out of scope: Trigger for general app events, such as "User was added, invited, blocked"
* Rule 1 (on AUFTRAG)
* Trigger: status change
* Condition: Type is AUFTRAG
* Action:
* Release automation trigger ("remotely called") for all WPs that have a "includes" relation with the current WP.
* Rule 2 (on FACHKONZEPT)
* Trigger: "remotely called"
* Condition:
* Type is FACHKONZEPT
* All related work packages with relation type "includes" have status "closed"
* Action: Set status to "closed"
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92651/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92653/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92652/content">