Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

Use case

Return the sum up of the logged time time spent of the current and the linked issuesin hours.

Expression

Create and configure a Smart field using this expression in General parsing mode:

Code Block
languagejs
linenumberstrue
%{round(sum(append(fieldValue({issue.timeSpent}, issuesFromJQLunion("issue in linkedIssues("+%{issue.key}+") OR parent in linkedIssues("+), issueKeysToIssueList(%{issue.key}+") OR issuekey = "+%{issue.key}+" OR parent = "+%{issue.key})), [0])) / 60 * 100) / 100}
}

Used parser functions

Page properties
hiddentrue
moderound(issuesFromJQL"issue in "+%{issue.key}+") OR parent in linkedIssues("++"OR issuekey = "+%{issue.key}+" OR parent = "+%{issue.key} * 100) / 100
Feature

Field type

Smart number field

Parsing mode

General

Expression
Code Block
languagejs
linenumberstrue
%{
sum(append(fieldValue({issue.timeSpent}, 
union(
linkedIssues(
), issueKeysToIssueList(%{issue.key}
) 
)), [0])) / 60
}
Label
Use case description

Return the sum up of the logged time of time spent of the current and the linked issuesin hours.

Complexity

 

Status
titleINTERMEDIATE