Hello Experts,
I'm a newbie in the Jira customization universe.
We're running Jira's "v8.17.1" DC version and ScriptRunner's "6.31.0" version.
The situation at hand is that our Business users approve the ticket at late night hours and expect the deployments by the operations team to be done instantly, which is not the correct practice. This often leads to unnecessary meetings. Hence, we would like to block the approval (it is just a normal Jira transition) and force them to approve during acceptable hours.
Therefore, we wish to block a transition based on the below factors;
1. Between 11 PM and 8 AM, the user cannot transition this ticket ahead.
2. We have a custom field called "Deployment window", which is a Jira "Date Time Picker" field and holds a date-time value for deployment.
The user cannot transition this ticket ahead if the "Deployment window" is less than 3 hours away.
Any assistance/ guidance is much appreciated!