Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Validator on field that has to be updated although it already has content

Tiago Pereira
Contributor
October 5, 2023

I want to add an field validator that makes sure that users fill in the 5 why's & answers's on root cause of the finding field, the issue is that regular validator will not work as field has already some contentScreenshot 2023-10-05 093156.png

1 answer

1 vote
Asha Goyal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2023

Hello @Tiago Pereira 

You can try to achieve this by Conditional Validator thorugh JMWE plugin or Scriptrunner.

One more alternative is to Clear Field in previous transition by using Clear field value post function so that normal validator can be applied.

Feel free to ask if any other query regarding this.

Thanks

Tiago Pereira
Contributor
October 5, 2023

But I don't want it to be cleared, the 5 Why's & Because must stay there

Asha Goyal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2023

In that case you can try to achieve this by applying conditional validator through JMWE plugin or scriptrunner.

Tiago Pereira
Contributor
October 5, 2023

I placed this validator that checks if length is greater than 69 characters which as you can see is "False" but still ticket is not being blocked on the transition

Tiago Pereira
Contributor
October 5, 2023

Screenshot 2023-10-05 105908.png

Asha Goyal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2023

What condition are you trying to put here?

Tiago Pereira
Contributor
October 5, 2023

So user is obligated to add data to why & because data

Asha Goyal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2023

Hello @Tiago Pereira 

Sorry for miss understanding the issue. But what kind of field have you taken for the root cause? They are 5 why's and Because.. how to differentiate these why's from each other?

Thanks

Tiago Pereira
Contributor
October 6, 2023

So Root Cause of the Finding is an custom field, that is populated w/ 5 why & because via an automation.

I wan to make sure that users fill in the 5 why & because.

But as the field already has the why & because the native validator will not work as it will detect that there is already content on it, this is my predictement

Suggest an answer

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

Atlassian Community Events