Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function adds or subtracts natural days (or working days) to or from any given date. Weekends will notbecounted as working days. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addDaysSkippingWeekends(timestamp, numberOfDays, timeZone) #Output: Number |
UI Expand | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
|
UI Expand | ||||
---|---|---|---|---|
| ||||
Parameters used in this function
|
Status | ||
---|---|---|
|
Status | ||
---|---|---|
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Status | ||||
---|---|---|---|---|
|
size | medium |
---|---|
type | info |
Status | ||||
---|---|---|---|---|
|
Syntax
Code Block |
---|
addDaysSkippingWeekends t, n, time_zone) |
Info |
---|
If t represents a timestamp which coincides with a Friday, adding n = 1 will return a date-time for the following Monday. Negative values for n are used in order to subtract days to t. Note: n cannot be higher than 50000. |
Input
t
|
|
n
|
|
time_zone
|
|
UI Expand | ||
---|---|---|
| ||
This function returns |
Output
This expression will return a timestamp asa
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant of the function where you can additionally define the start and the end of the weekend. This function is useful when the non-working days differ from the standard (Saturday/Sunday). |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addDaysSkippingWeekends(timestamp, numberOfDays, timeZone, startOfWeekend, endOfWeekend) #Output: Number |
UI Expand | ||||
---|---|---|---|---|
| ||||
|
timeInStatus("Open", "my_schedule", LOCAL)
|
UI Expand | ||||
---|---|---|---|---|
| ||||
Parameters used in this function
|
Code Block |
---|
addDaysSkippingWeekends t, n, time_zone) |
Info |
---|
If t represents a timestamp which coincides with a Friday, adding n = 1 will return a date-time for the following Monday. Negative values for n are used in order to subtract days to t. Note: n cannot be higher than 50000. |
|
|
|
|
|
|
|
UI Expand | |
---|---|
|
Code Block |
---|
timeInStatus("Open", "my_schedule", LOCAL) |
Number of milliseconds the current issue has stayed in status "Open" within the schedule called "my_schedule" matching the server's default timeZone.
Code Block |
---|
timeInStatus("Open", "my_schedule", LOCAL) |
Number of milliseconds the current issue has stayed in status "Open" within the schedule called "my_schedule" matching the server's default timeZone.
Code Block |
---|
timeInStatus("Open", "my_schedule", LOCAL) |
| ||||||
This function returns a
|
UI Text Box | ||
---|---|---|
| ||
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. If you want to subtract two date-time values you might want to have a look at the function subtractDatesSkippingWeekends(). |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|