You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

This function returns a number list of the dates (or timestamps) of related comments.

Syntax
allCommentDates() #Output: Number list
Examples
Parser expressionDescription
allCommentDates()

This example returns all dates (timestamps) comments were added to the current issue, e.g.:

"1.589876148283E12, 1.589877314445E12"

first(allCommentDates())
This example returns the timestamp of the most recent comment. This could be then written into a custom date time field.
Output

This function returns a NUMBER LIST


Variant where you can additionally define issue keys.

Syntax
allCommentDates(keys) #Output: Number list
Examples
Parser expressionDescription
allCommentDates(["SW-1", "SW-2"])

This example returns a number list with the timestamps of the comment dates for issues with the key SW-1 and SW-2.

Additional information

Parameters used in this function

ParameterInput (data type)Description
keys

TEXT

A text containing issue keys as a comma-separated list.
Output

This function returns a NUMBER LIST


Variant where you can additionally define specific issues in an issue list.

Syntax
allCommentDates(list) #Output: Number list
Examples
Parser expressionDescription
allCommentDates(issuesFromJQL("project = softwareProject"))

This example returns a number list with all the comment dates for all issues in the project softwareProject.

toString(invertList(textOnStringList(allComments(), "Author: " + userFullName(nthElement(allCommentCreators(),indexOf(^%, allComments()))) + " - Date: "+ nthElement(textOnNumberList(allCommentDates(), dateTimeToString(^, "MM/dd/yy", USER_LANG)),indexOf(^%, allComments())) +"<br />Body:<br />" + ^%)),"<br /><br />") 

This example returns an overview of all comments with their respective authors and the comment date.

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
list

ISSUE LIST

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).
Output

This function returns a NUMBER LIST