Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

Returns the time instant resulting from adding offset milliseconds to base_instant within schedule in a specific timezone.


Code Block
languagebash
titleSyntax
linenumberstrue
addTime(base_instant, offset, schedule_name, timeZone) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
addTime(2017/12/04 01:00, 8 * {HOUR} + 31 * {MINUTE}, "my_schedule", LOCAL)


This example returns: "2017/12/04 17:00"



Code Block
languagebash
linenumberstrue
addTime(2017/04/20 20:30, - 5 * {HOUR}, "my_schedule", LOCAL)


This example returns: "2017/04/20 13:00"

Info

Since version 2.2.41 negative offset values are supported.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
base_instant

Status
subtletrue
titlenumber


offset

Status
subtletrue
titlenumber


schedule_name

Status
subtletrue
titletext

The name of the schedule used for the calculation.
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation.



UI Expand
titleOutput

This function returns a

Status
titlenumber
representing a timestamp.

UI Text Box
typetip

The output can be written into any Jira field of type Date Picker ore Date Time Picker.

Another very common use case is to use this function in one of the JWT calculated date-time fields.




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 descriptionAdds or subtracts days to or from any given schedule.
Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label