Page History
Page properties | |||||||||
---|---|---|---|---|---|---|---|---|---|
| Status | ||||||||
Tech review |
| ||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Status | ||||
---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
size | medium |
---|---|
type | info |
This function adds or substracts natural subtracts days ( to or working days) to/ from any given date.Weekends will not be counted as working days.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
addDaysSkippingWeekendsaddDays(timestamp, numberOfDays, timeZone) #Output: Number |
UI Expand | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
Parameters used in this function
|
ui- | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Work days might depend on the time zone - it might be Sunday on the west coast of the US while at the same time it's already Monday in Australia. | |||||||||||
ui-expand | |||||||||||
| |||||||||||
This function returns a
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant of the function where you can 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 |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Parser expression | Description |
Code Block | ||
---|---|---|
| ||
addDaysSkippingWeekends({issue.duedate}, 10, LOCAL, {FRIDAY}, {SATURDAY}) |
This function adds 10 working days to the issue's due date.
Fridays and Saturdays are not counted.
Code Block | ||
---|---|---|
| ||
addDaysSkippingWeekends({issue.duedate}, -2, LOCAL, {SUNDAY}, {TUESDAY}) |
This function substracts 2 working days from the issue's due date.
Sundays, Mondays and Tuesdays are not counted.
title | Additional information |
---|
Parameters used in this function
timestamp
Status | ||||
---|---|---|---|---|
|
numberOfDays
Status | ||||
---|---|---|---|---|
|
The number defined here will be the offset in days.
Negative values are used to substract days.
Internally JWT multiplies this value with the time macro {DAY}
to add full days to the timestamp. Learn more about time macros.
timeZone
The time zone used for the calculation.
startOfWeekend
Status | ||||
---|---|---|---|---|
|
{MONDAY},{TUESDAY}
...{SUNDAY}
endOfWeekend
|
{MONDAY},{TUESDAY}
...{SUNDAY}
UI Text Box | ||
---|---|---|
| ||
Work days might depend on the time zone - it might be Sunday on the west coast of the US while at the same time it's already Monday in Australia. |
title | Output |
---|
Available since |
---|
|
|
type | tip |
---|
The output can be written into any Jira field of type Date Picker ore Date Time Picker.
| ||||
Label |
---|