Features used to implement the example
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)".
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
- Add all assignees of certain sub-task types to a "Multi-User Picker" custom field
- Add and remove a single or a set of items from multi valued fields
- Copy "Due date" into a date type custom field in a linked issue if it's greater than current issue's "Due date"
- Copy attachments from one issue to another
- Make an issue inherit highest priority among those of linked issues
- Propagate highest priority from blocked issues to blocking issues
- Sum sub-task's "Time Spent" (work logs) and add it to a certain linked issue
Write field on linked issues or sub-tasks
- Add and remove a single or a set of items from multi valued fields
- Automatically become watcher of every issue blocking an issue assigned to you
- Automatically close resolved sub-tasks when parent issue is closed
- Automatically resolve an epic when all its stories are resolved
- Compose dynamic text by inserting field values in a text template
- Copy "Due date" into a date type custom field in a linked issue if it's greater than current issue's "Due date"
- Copy attachments from one issue to another
- Create a comment in sub-tasks when parent transitions
- Creating a Jira Service Desk internal comment
- Creating a Jira Service Desk internal comment on linked issues
- Execute transition in epic
- Make linked issues, sub-tasks and JQL selected issues progress through its workflows
- Moving sub-tasks to "Open" status when parent issue moves to "In Progress"
- Sum sub-task's "Time Spent" (work logs) and add it to a certain linked issue
- Transition sub-tasks when parent is transitioned