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 "Time Spent" in all sub-tasks of issues linked with issue link types "LinkA", "LinkB", "LinkC"

I have this scenario:

In post-function "Save LoggedWord" I need to go throught all linked issues to current issue by link type names LinkA, LinkB, LinkC, etc. In each linked issue I need to go throught all of its sub-tasks and sum "Time Spent" on each. So I need all time spents from all sub-tasks from all linked issues. Is this feasible with the current version of Read fields from linked issues or sub-tasks postfunction?


You can do it using post-function Mathematical and date-time expression calculator with the following configuration:


Text to be parsed is: sum sum(fieldValue({00025},subtasks(linkedIssues("LinkA, LinkB, LinkC, LinkD"))))


Note that:

  • {00025} is field code for virtual field "Total time spent"
  • Target field "Sum of time spent" is a custom field to type Number that will store sum of time spent of sub-tasks of linked issues in minutes

Once configured, the transition will look like this:




Other examples of that function

Incoming Links
pageMathematical and date-time expression calculator
labelsexample

Related Usage Examples

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