Forums

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

Change Request Date Field Validation based on Change Severity

Wynand.Ferreira
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!
June 28, 2023

I am looking to implement the following validation at Create screen for the user:

 

First Selector option:

Change Type = Normal

Change Type =Emergency

 

Validation to be applied:

 

If Change Type = Normal

then

Field [Change Start Date & Time] may not be before the following Friday 11am (CAB is at this time and no normal change may be started before CAB approval is done at this time).

Field [Change End Date & Time] may not be before or equal to [Change Start Date & Time].

 

If Change Type = Emergency

then

Field [Change Start Date & Time] may be any date and time

Field [Change End Date & Time] may not be before or equal to [Change Start Date & Time].

 

The validation should present a meaningful error as well if possible to show where the issue is.  All 3 fields mentioned above is mandatory fields within the create screen of this request type.

 

How do I go ahead in implementing this?

1 answer

0 votes
Sayed Bares [ServiceRocket]
Community Champion
July 6, 2023

Welcome to the community @Wynand.Ferreira !

is Friday 11am based on a specific timezone? and do you have any workflow extension apps which enables you to create your own custom validator by using Jira Expression? like JMWE, PowerScripts, ScriptsRunner...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events