On this page
Use case
Setting a due date of an issue to a date outside of the company's business hours can cause confusions.
In the following use case the transition will be prevented if the issue's due date is not set accordingly.
Configuration
Assumption: A custom JWT calendar called "my-calendar" has been defined as follows:
MON - THU { 08:00 - 15:00, 16:00 - 19:30; } FRI { 08:00 - 15:00; }
Add the Logical validator to the desired workflow transition. You might want to place it within the create transition to prevent the creation of the issue.
Expression
Add the following expression:
withinCalendar({issue.dueDate}, "my_calendar", LOCAL)
Screenshots
Related use cases
If you still have questions, feel free to refer to our support team.