Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns a 

Status
subtletrue
titlenumber
representing the sum of all the time logged in issues in milliseconds.

Output

Status
subtletrue
titlenumber

UI Text Box
sizemedium
typeinfo

The function returns a 

Status
subtletrue
titlenumber
representing the This function returns the sum of all the time logged in  on issues in milliseconds.


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issue list issuesissueList) #Output : Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(subtasks())
The function returns a
Status
subtletrue
titlenumber
representing the sum


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

milliseconds

full hours.

Learn more about numbers and mathematical functions.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>issueList

Status
subtletrue
titledata typeissue list

A list of issue to be evaluated. Learn more about ListsParameter description.



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

the function returns a

Status
subtletrue
titlenumber
representing the sum of all the time logged in issues in time interval defined by timestamps datetime_ini and datetime_end and If one or both timestamps are null, then it is assumed that the time period has not low or high time limit respectively.

Logged time is returned in milliseconds.

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(issue list issuesissueList, number datetime_inistartDate, number datetime_endendDate) #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 10th 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({
00057
system.currentDateTime}, LOCAL), addDays
(datePart
({
00057
system.currentDateTime}, LOCAL), 1, LOCAL))
The function returns a
Status
subtletrue
titlenumber
representing


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

Note that {00057} is field code for Current date and time

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
<parameter>issueList

Status
subtletrue
titledata type

Parameter description.

issue List

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

Status
subtletrue
title

data typeParameter description.

number

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

Status
subtletrue
title

data type
number

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



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

The function Returns the 

Status
subtletrue
titlenumber
of all the time logged in issues by a user with the username user.

Logged time is returned in milliseconds.

UI Text Box
typenote

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

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


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issue list issuesissueList, string user) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeLogged(linkedIssues(), %{
00003})

The function returns a 

Status
subtletrue
titlenumber
representing the sum of time logged by the assignee on linked issues.

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

%{00003}is field code for Assignee

.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>issueList

Status
subtletrue
titledata type

Parameter description.

issue list

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

Status
subtletrue
title

data type
text

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

Parameter description

.




UI Expand
titleOutput
The This function returns a
Status
subtletrue
titlenumber




UI Text Box
sizemedium
typeinfo

The function returns a 

Status
subtletrue
titlenumber
the sum of all the time logged in issues by a user in a time interval defined by timestamps datetime_ini and datetime_end. If one or both timestamps are null, then it's assumed that the time interval hasn't low or high time limit respectively.

Logged time is returned in milliseconds.

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

UI Text Box
typenote

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


Code Block
languagebash
titleSyntax
linenumberstrue
timeLogged(issue list issuesissueList, number datetime_inistartDate, number datetime_end, stringendDate, user) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


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

The function returns a

Status
subtletrue
titlenumber
representing the sum of time logged by the assignee on subtasks during 2018.

 %{00003} is field code for 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

<parameter><parameter>
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
title

data type

number

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

Status
subtletrue
title

data typeParameter description.

number

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

Status
subtletrue
title

data typeParameter description.

text

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
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
languagebash
%{sum(toNumberList(jiraExpression("issue.links.map(l=>l.linkedIssue)
.map(e=>e.timeSpent)")))}

It's only possible to do it using our General parser.




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



Parameter description.
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
data type