Post function

Post function

There’s a post function you can use to transition item statuses on issue transition:

Screenshot from 2025-06-06 16-44-46.png

It allows mapping a current status to a new status for various other use cases, (eg. ‘pending review’ → ‘ordered’ for an “approve order” transition).

To decline items on a ‘decline’ transition you would map every status to declined ; just make sure to select the checkbox to update stock when items are declined. This returns the appropriate amount of items declined back to the stock attribute.

The configuration looks like this:

Screenshot from 2025-06-06 16-47-26.png

You can find the post function in the ‘Add Post Function to Transition’ screen of workflow administration:

Screenshot from 2025-06-06 17-12-09.png