Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Freeze period for Change Requests

Andy De Petter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2025

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!

2 answers

0 votes
Tiago April 4, 2025

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

 

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2025

HI @Andy De Petter 

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events