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.


Assumption: A custom JWT calendar called "my_calendar" has been defined as follows:
   08:00 - 15:00,
   16:00 - 19:30;
    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.


Add the following expression:

withinCalendar({issue.dueDate}, "my_calendar", LOCAL)

Error message

Optionally, enter an error message something like this:

Unfortunately you're trying to execute this transition outside of our business hours.
Please try it again on:
Mon - Thu 08:00-15:00, 16:00-19:30
Fri 08:00-15:00.


Related use cases

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