Hi Sourav,
I can confirm that inside Jira Cloud, Behaviours does not provide a set error message, which means you will not be able to achieve your requirement of displaying error text.
You can see what fields and methods Behaviours supports Cloud in the documentation page located here, and the closest method to setError() would be setDescription() method to set some description text below a field.
This means in your script if you change setError to setDescription and change clearError() to setDescription("") then your logic would set the value as a description below the field.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.