Page History
UI Text Box | |||||
---|---|---|---|---|---|
| |||||
Page properties | |||||
| Status | ||||
Tech review |
| ||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
This function adds or
substractssubtracts natural days (or working days) to
/or from any given date.
Weekends will notbecounted as working days.
OutputCode Block | |||||||
---|---|---|---|---|---|---|---|
| subtle |
| number
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 |
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||
Parameters used in this function
Expand |
Excerpt Include | Dates, times and timezones | nopanel | true |
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
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 a JWT calculated date-time field. | ||||
UI Text Box | ||||
| ||||
Variant of the function where you can additionally define the start and the end of the weekend. This function adds or substracts natural days (or working days) to/from any given date. Weekends will not be counted as working days.is useful when the non-working days differ from the standard (Saturday/Sunday). |
Code Block | ||||
---|---|---|---|---|
Code Block | ||||
| ||||
| ||||
addDaysSkippingWeekends(timestamp, numberOfDays, timeZone, startOfWeekend, endOfWeekend) #Output: Number |
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
If the due date is set to a Monday the function will return a date-time for Wednesday. If the due date is set to a Friday the function will return a date-time for Tuesday
If the due date is set to a Monday the function will return a date-time for Thursday. If the due date is set to a Friday the function will return a date-time for Wednesday.
This function substracts 6 days from the
Instead of the Jira server's local time this example uses the current user's time zone.
|
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters used in this function
Learn more about timezones | Excerpt Include | Dates, times and timezones |
Dates, times and timezones | nopanel | true
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
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 aone of the JWT calculated date-time field.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 | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|