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


JWT feature

Workflow function

Jira expression condition

Jira expression validator

Parser functions
Use case description

Block transitions on weekends or any other day of the week.

This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.

Complexity




Status
Tech review

Style guide