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

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

355 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