Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21: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.
×I have read examples in documentation of Behaviour plugin how to require / hide a field with serverside scripts (setHidden, setRequired).
Is there any documentation available, which further methods are available? Can the description text be modified? Can the background color of the field be modified?
Purpose:
If specific condition is fulfilled, I want to give clearly visible signal to user, that comment field is visible to specific group. Approach is to set this signal by special background color of comment or by adding big / colored description text below comment field.
You can set the description of a field, which will replace the one underneath the field. You can use html in that description so you can make it big and blue if you like.
Because you are adding html to the DOM, you can also add stylesheet rules for other elements, eg change the entire background of that field, although it's probably not particularly advisable. If Atlassian change the structure of the DOM, that could stop working.
Thanks for the answer. As I only want to set background color under specific conditions I am probably back to Javascript (on client side). However - is there some documentation which methods are available on fields in serverside scripts? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.