Modifying look of customfield by Behaviour plugin

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?

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.

1 answer

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


254 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you