Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns the sum of all the time logged on issues in milliseconds.


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issueList) #Output : Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(subtasks())


This example returns the sum of time logged in the current issue's sub-tasks in milliseconds.


Code Block
languagebash
linenumberstrue
timeLogged(subtasks()) / {HOUR}


This example returns the sum of time logged in the current issue's sub-tasks in hours.

UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.

subtasks() is a function to return all subtasks.



Code Block
languagebash
linenumberstrue
round(timeLogged(subtasks()) / {HOUR})


This example returns the sum of time logged in the current issue's sub-tasks in full hours.

Learn more about numbers and mathematical functions.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue list

A list of issue to be evaluated. Learn more about Lists.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define the time interval when work was logged. 

If any of the fields defined for the interval returns null the parameter will be ignored.


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issueList, startDate, endDate) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(subtasks(), 2020/01/01, 2020/01/10) / {HOUR}


This example returns the hours logged on all subtasks of the current issue between January 1st and January 7th of 2020.

UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.

subtasks() is a function to return all subtasks.



Code Block
languagebash
linenumberstrue
timeLogged(issuesUnderEpic(), datePart({system.currentDateTime}, LOCAL), addDays({system.currentDateTime}, LOCAL), 1, LOCAL))


This example returns the sum of time logged today in issues under the current issue's Epic.

The extract the date part of the current date (represented by its field code) the function datePart() is used.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue List

A list of issues to be evaluated. Learn more about working with lists.
startDate

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
endDate

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

Variant where you can additionally limit the results to certain users.


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issueList, user) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(linkedIssues(), %{issue.assignee}) / {HOUR}


This example returns the sum of time logged on all linked issues by the current assignee.

UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.

linkedIssues() is a function to return all linked issues.



Code Block
languagebash
linenumberstrue
timeLogged(subtasks(), %{issue.assignee}) / {HOUR}


This example returns the sum of time logged on all subtasks of the current issue by the current assignee.

UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.

subtasks() is a function to return all subtasks.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue list

A list of issues to be evaluated. Learn more about working with lists.
user

Status
subtletrue
titletext

Limits the results to certain users. Users can also be retrieved by using field codes.

UI Text Box
typeinfo

This parameter can contain a single user name (not to be confused with user's full name), or a comma separated list of usernames, group names or project role names.




UI Expand
titleOutput
This function returns a
Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define the time interval when work was logged by certain users

If any of the fields defined for the interval returns null the parameter will be ignored.


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issueList, startDate, endDate, user) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(subtasks(), 2019/01/01, 2020/01/01, %{issue.assignee}) / {HOUR}


This example returns the hours logged on all subtasks of the current issue during the year 2019 by the current assignee.

UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.

subtasks() is a function to return all subtasks.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue List

A list of issues to be evaluated. Learn more about working with lists.
startDate

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
endDate

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
user

Status
subtletrue
titletext

Limits the results to certain users. Users can also be retrieved by using field codes.

UI Text Box
typeinfo

This parameter can contain a single user name (not to be confused with user's full name), or a comma separated list of usernames, group names or project role names.




UI Expand
titleOutput
This function returns a
Status
subtletrue
titlenumber



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_timelogged" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the sum of all the time logged on issues.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label