If a ticket has been created outside of the communicated business hours, it is a good practice to inform the Service Management customers about this.
Configuration
Add the Add comment post function to the create transition of the desired workflow.
Comment text
Choose Add comment manually
Expression
Enter your custom comment, like:
Dear customer,
even superheroes need a break! Unfortunately we are closed for today. Be sure that we will take care of your request as soon as possible!
Comment visibility
Choose Customer facing comment for Jira Service Management projects
Conditional execution
NOT withinCalendar({issue.created}, "my_calendar", LOCAL)
By using this conditional execution, the comment will only be added if the creation date of the isuse is outside of the business hours defined within the calendar.