A sub-task can execute a post-function in order to move its parent issue through the workflow. For example, we can close a parent issue when all sub-tasks are closed.
How to make parent issue progress through its workflow?
A sub-task can make its parent issue transition using 2 different sets of virtual fields:
In order to transition parent issue, a sub-task typically uses post-function Copy parsed text to a field with the following configuration:
Also Set a field as a function of other fields can be used.
Difference between "Parent's issue status" and "Parent's issue status (delayed writing)" or "Execute transition on parent issue" and "Execute transition on parent issue (delayed execution)"
Virtual fields "Parent's issue status" and "Execute transition on parent issue" try to transition parent issue as soon as they are written, while fields "Execute transition on parent issue (delayed execution)" and "Execute transition on parent issue (delayed execution)" wait for sub-task's current transition to end execution, before transitioning parent issue.
When a sub-task uses "Execute transition on parent issue (delayed execution)" or "Execute transition on parent issue (delayed execution)" fields for transitioning its parent issue, parent's execution attempt won't be carried out until current sub-task's transition has finished, and thus sub-task is in the new status. For this reason, these fields are used when parent issue is blocked by a condition or validator depending on sub-tasks statuses, typically by a conditions or validators like "Sub-Task Blocking Condition", Condition and validation on sub-tasks and Boolean condition and validator with math, date-time or text-string terms, etc.
In this example we show how to automatically reopen an issue in status "Done" when any of its sub-tasks is reopened. Let's assume the following workflow:
We will insert post-function Copy parsed text to a field into transitions "Reopen" and "Reopen and start progress" with the following configuration:
Note that:
Once configured, transitions "Reopen" and "Reopen and start progress" will look like this: