Is it possible to use a scriptrunner or JWT expression in the following scenario:
- A piece of equipment has been booked between date/time A and date time B. This has been added through the portal, and an Jira agent has accepted this by marking the request "Booking Accepted" = Yes, for Equipment = "x"
- Now, if someone else tried to put a request in that clashes with that time window it is not possible to submit the request in the portal.
I think what I'm after is, when the new request is submitted....
If date/time A of NEW request is between A and B for Equipment = X that already exists then deny the submission?