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 text list with the times when the current issue was transitioned from origin_status to destination_status.

Output Statussubtletruetitletext listAvailable since

Status
subtletrue
colourBlue
title2.2.7

UI Text Box
sizemedium
typeinfo

This function returns a text number list with the times when the current issue was transitioned from origin_transitioned from a given status to destination_another given status, order ordered by ascending by transition time.

An empty string as an argument that is interpreted as any status.


Code Block
languagebash
titleSyntax
linenumberstrue
timesOfTransition(string origin_statusfromStatus, string destination_statustoStatus) #Output: TextNumber list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
dateToString(last(timesOfTransition("", "ResolvedDone")), LOCAL, USER_LANG)


This example returns the most recent time of when the issue was resolved, based on the local time zone e.g.:

24.06.2020

To achieve this the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxfromStatus

Status
subtletrue
titledata typetext

Text containing a valid status nameParameter description.
xxxtoStatus

Status
subtletrue
titledata typetext

Text containing a valid status nameParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext number list




UI Text Box
sizemedium
typeinfo
Variant where you can additionally define an a specific issue _ key.


Code Block
languagebash
titleSyntax
linenumberstrue
timesOfTransition(string origin_statusfromStatus, string destination_statustoStatus, string issue_keyissueKey) #Output: TextNumber list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
dateToString(first(timesofTransition("Closed", "", %{00041parent.key})))


This example returns the

first time when the

date of when the parent issue was reopened for the first time,e.g.:

24.06.2020



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxfromStatus

Status
subtletrue
titledata typetext

Text containing a valid status nameParameter description.
xxxtoStatus

Status
subtletrue
titledata typetext

Text containing a valid status nameParameter description.
xxxissueKey

Status
subtletrue
titledata typetext

Text containing a valid issue key. Usually field codes are usedParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible because that kind of information is not available.




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 timestamps of when a certain transition was executed.

Output

Status
subtletrue
title

text list

number list

Available since

Status
subtletrue
colourBlue
title2.2.7

Label