Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
A workflow post-function that deletes the current issue and its subtasks if any. 


To add 'Delete issue' post-function to a transition : 

  1. Click Edit for the workflow that has the transition you wish to add the post-function on.
  2. In the Workflow Designer, select the transition.
  3. Click on Post Functions in the properties panel.
  4. Click on Add post function.
  5. Select Delete issue from the list of post-functions.
  6. Click on Add to add the post-function to the transition.
  7. Click on Add to add the post-function to the transition.


Warning
borderColorSilver
titleKnown limitations


Common to all post-functions:

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sorttitle
typepage
cqllabel = "common-issue" and type = "page" and space = "JMWEC"
labelskb-troubleshooting-article

Page Properties
hiddentrue


Related issues




Panel
titleRelated links

For information on where the post-function needs to be placed on a transition, see Placing post-functions in a transition.

Refer to the Use cases for the post-functions page for use cases for this post-function.

Refer the Troubleshooting and Support page if the post-functions does not seem to be working as you would expect.


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:

(lightbulb) Automatically move the issue to a project when it is approved.

Expand
titleSteps

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.

Panel

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.

  • Add a delay of a few seconds to the post-function
  • Save the post-function and publish the workflow