Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width30%
Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1

Column



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)".

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

Incoming Links
pageRead fields from linked issues or sub-tasks
labelsexample


Write field on linked issues or sub-tasks

Incoming Links
pageWrite field on linked issues or sub-tasks
labelsexample

Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label in ("custom-field","sub-task","issue-links")