Im trying to validate two aspects
On Create screen, if the system downtime was indicated as yes - Radio (Yes, No), then Start of System Downtime is required to create the issue
When closing an issue
If system downtime was indicated as Yes, then resolved downtime is required to close the ticket
System downtime Radio (yes, no): issue.customfield_11009
Start of System downtime: issue.customfield_11006
Resolved downtime: issue.customfield_11007
How can i achieve this in JMWE?
You can add two validators: One on create and one on the transition(s) to Done:
With the help of a colleague, i believe we have found a solution.
For Create im doing
issue.customfield_11009.value == "No" || !!issue.customfield_11006
For close of the ticket im doing
issue.customfield_11009.value == "No" || !! issue.customfield_11007
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure you want ||, instead of &&?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From our testing when && was used it would block creating tickets when users selected No when populating the system down time field. When no is selected, the start of system downtime is not needed to be populated because there wasnt an outage so no need to indicate the date and time it started because that never actually happened
When we used || it allowed users to be able to select No and leave start of the system down time field empty
When users select yes, they have to populate start of system downtime field to be able to create the issue.
I initially thought the exact same thing that && should be used but it wasnt working as i expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.