A post function is a workflow function that performs automated actions after an issue transitions to a new status. ScriptRunner has several built-in post functions. Each function contains a condition that can be used to dismiss the rest of the script if it returns false. Most functions also have additional code that can execute to modify the final action of the function.
There are several ways to enhance your workflow using post functions, including:
Automatically add or remove an issue from the active sprint after it is transitioned.
Change the assignee of an issue after it’s transitioned.
Send a notification on the transition of an issue.
Create Post Function
Select the transition you wish to add the post function to.
ClickPost Function→Add Post Function.
Select theScriptRunner Post Functionoption thenAdd.
Select a post function from the list of available functions. For exampleAdd/Remove From Script.
In theDescriptionfield, enter a short description of the post function.
SelectEnable Post Functionto enable it as soon as it is added.
Different options are available depending on the post function added, see the examples for each post function in this section for field descriptions along with Additional Code.
For help navigating to ScriptRunner workflow functions, follow the steps to navigate toworkflow functions.
Edit Post Function
Select the transition the post function is on.
ClickPost Functions. A list of all post functions on the selected transition is shown.
To edit an existing post function, click thePencil.