You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am running an automation to validate field attributes values. Having logic with multiple attributes. I am doing this in a ScriptRunner function.
Is there a way to display an error message to user and prevent data to be saved until data is corrected?
I tried throwing an exception, but was not able to create properly the exception. Is there a simple way to do this?
Hi @G_ Langevin, if you are validating it during a workflow transition you can use the out of the box "Asset Validator".
I hope that helps.
Cheers,
Melo
If you are talking about the validator with a regular expression? This can only validate the format of a field. But you cannot do logic with multiple fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @G_ Langevin, I was talking about the regular Asset validator, on my end I can use AQL to verify multiples attributes. Are you also validating multiple Asset fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Based of field_1 value, the Field2 must have a value and not be null. If another value, field3 must have a value.
This may work. Did you do something like this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @G_ Langevin
I did not. I would usually use it to do a simple check for assets on a custom field during a workflow transition. Now having more information regarding your requirement I'm not sure if the "Asset Validator" would be enough or the best way of going about it. I hope you find a solution.
Please let me know if you have any other questions regarding basic Asset functionality.
Cheers,
Melo
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.