Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Script Validation to block the transition

ASameeA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2023

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!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events