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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,274
Community Members
 
Community Events
184
Community Groups

Insight / Asset - Has anyone validated, in Asset interface, attributes of an object ?

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?

 

1 answer

0 votes
Melo
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 29, 2023

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.

Melo
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 29, 2023

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?

Screen Shot 2023-03-29 at 12.54.38 PM.png

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?

Melo
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 30, 2023

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

Thanks for the answer, will get back when I find the solution

Like Melo likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events