When you add this post-function to a transition and trigger the transition, the add-on deletes the current issue and its subtasks, if any.
Run As
- Run as current user
The current user will be the user that deletes the new issue.
- Run as add-on user
The add-on user will be the user that deletes the new issue.
- Run as this user
Any user selected in this field will be the user that deletes the new issue.
Conditional execution
To execute this post-function based on the result of a Nunjucks template see Conditional execution.
Delayed execution
To delay the execution of this post-function see Delayed execution.
Delete issue
This post-function can be used to delete an issue.
Sample use cases:
Automatically move the issue to a project when it is approved.
title | Steps |
---|
Since there is no REST API to move issues between projects the workaround is to clone the issue into the desired project and delete the current issue.
Clone issue
- Add the Create issue post-function to the Approve transition of the issue's workflow.
- Fill in mandate/all fields of the new issue in "Set fields of new issue" section
- Save the post-function.
Delete issue
Add the Delete issue post-function to the Approve transition of the issue's workflow.