Document AddDays and AddHours date filters - #3326
Open
NickJosevski wants to merge 2 commits into
Open
Conversation
|
Pull request environment is available at https://stoctodocspr3326.z22.web.core.windows.net. You can view the ephemeral environment status in Octopus Deploy. This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity. |
This was referenced Aug 10, 2026
NickJosevski
force-pushed
the
nj/date-filters
branch
from
August 10, 2026 10:59
4d0512d to
b7bd32f
Compare
NickJosevski
marked this pull request as ready for review
August 10, 2026 11:04
Includes a worked ServiceNow change-window example, and a warning that Octopus.Task.QueueTime is queue time rather than execution start, so a window derived from it starts counting down while the task is queued. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
CI lints only changed files, so editing this page surfaces violations that already fail on main. Limited to what the linter actually reports: two misaligned tables, asterisk list markers, a hard tab, trailing whitespace, duplicate blank lines, and a missing blank line after a heading. Each table keeps its own separator style, so the diff stays close to what the rules require. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski
force-pushed
the
nj/date-filters
branch
from
August 10, 2026 11:05
b7bd32f to
ff06983
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the two new date filters added in OctopusDeploy/Octostache#124 which has gone out in 3.9.3
Raised from ticket 215987, who need a ServiceNow change window of
start + 2 hourscomputed entirely from Octopus variables.Changes
variable-filters.md—AddDaysandAddHoursrows in the date-filters table, plus an### AddDays and AddHourssection covering negative and fractional amounts, time-zone preservation, and the echo-on-bad-input behaviour.variable-substitutions.mdx— both added to the flat filter list.Worked example + caveat
The section ends with the ServiceNow change-window example, and a warning that
Octopus.Task.QueueTimeis queue time, not execution start — so a window derived from it starts counting down while the task is still queued. For an immediate deployment the two are interchangeable, but a task waiting behind another deployment or on a busy worker pool can fall outside its own implementation window before any steps run.The per-environment pattern in that callout scopes the whole expression rather than just the hour count, because a filter argument that is itself a variable can't be followed by another filter in the same chain (a pre-existing Octostache parser limitation, verified against
Format,AppendandTruncatetoo).🤖 Generated with Claude Code