🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Example: Sum sub-task's "Time Spent" (work logs) and add it to a certain linked issue

Issue type A is linked to issue type B. Issue A has sub-tasks and people log work at the sub-task level. When issue A is closed I need all work logged in its sub-tasks to be copied to issue B. Actually it has to be added since issue B may have work logged from other issues (Issue B is a summary of what is being logged at a lower level). I have been trying using virtual field Total time spent (minutes) in Close post function with copy parsed value and write to linked issues, but it doesn't work...maybe there is a conversion that I am missing.

It is possible to implement your requirements using post-functions Read fields from linked issues or sub-tasks and Write field on linked issues or sub-tasks, and virtual field "Total time spent (minutes)".

Let's suppose that issue A is linked to issue B using issue link type "blocks", i.e., we would read "Issue A blocks issue B". We are going to implement in workflow of issue A a behavior associated to transition "Close Issue", that will add to issue B all time spent (work logs) in sub-tasks of issue A, and also the time spent of issue A (work directly logged into issue A).

Use post-function Read fields from linked issues or sub-tasks with the following configuration:


Use post-function Write field on linked issues or sub-tasks with the following configuration:



Once configured, transition will look like this:




Other examples of that functions

Read fields from linked issues or sub-tasks


Write field on linked issues or sub-tasks

Related Usage Examples