On this page

Use case

Block a transition based on the day of the week.


Configuration

Jira expression*

new Date().getDay() != 0

Issues will not be transitioned on Sundays

The number 0 in the expression refers to the day of the week, being 0 Sunday; 1, Monday; 2 Tuesday and so forth until 6.

Variations


Jira expression*

![0, 6].includes(new Date().getDay())

Issues will not be transitioned on weekends.

Jira expression*

new Date().getDay() % 2 == 0

Issues will only be transitioned every second day.




Related use cases


If you still have questions, feel free to refer to our support team.