Hi guys,
I was wondering whether anyone has been able to define freeze period windows based on a change's planned start/end date?
Concretely, I would like to define month-end -X days and month-start +X days as being a freeze period, and perform actions in automation based on that.
Something like:
if (planned-time >= 2_days_before_monthend OR planned-time <= 2_days_after_month_start) then xxx
any smart values with dates than can be used here? the only relevant one I could find is the now.ofTheMonth, but "now" is not really relevant for what I'm trying to achieve
thank you!
Hi, I created it to use smart values in this way in Jira Automation. See if it help you.
last business day of the month: {{now.lastBusinessDayOfMonth}}
You can combine with (todate()):
Day of the previous week: .minusWeeks(1)
Previous business day:
.toBusinessDayBackwards
Next business day:
.toBusinessDay
2 working days behind:
.minusBusinessDay(2)
2 business days ahead:
.plusBusinessDay(2)
Then
If {{varBeginDate.todate().jiraDate}} >= planned-time and {{varFinalDate.todate().jiraDate}} <= planned-time
Links:
Automation smart values - date and time | Cloud automation Cloud | Atlassian Support
Date and Time functions 1 | Automation for Jira Cloud and Data Center | Atlassian Documentation
Examples of using smart values with dates | Cloud automation Cloud | Atlassian Support
Unfortunate not.
Change planned and start date are used to show changes in the change calendar.
Smart values can't be used in creating a freeze window.
There is also no option in the API for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.