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?

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.

1 answer

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

509 views 3 18
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