How to force uppercase or lowercase when entering data in labels?

Hi there,
do you think this is achievable to force uppercase or lowercase when entering text in labels?
Today people can enter a value either with big case or either with small case as well, it means the same value/text can appear several times in labels.
Thank you!

2 answers

1 accepted

2 votes
David Simpson Community Champion Jul 03, 2011

In Confluence all labels seem to default to lower case.

If you mean JIRA, you'll need to add some JavaScript like this:

AJS.$('#labels-textarea').live('blur',function(){
AJS.$(this).val( AJS.$(this).val().toUpperCase() );
});

Either find a suitable JavaScript file to update, or hack it into the admin section in a similar manner to this.

Hi Davis,

thank you for your comment, I'll check your solution (JIRA related).

And sorry to be late in my reply but I have some difficulties to understand how this new forum works.

Thank you.

François.

David,

I pasted the code in the annoucement banner but this code is displayed as a text in the banner.

Is there something else to do? Sorry I have no knowledge with javas, html, ...

Thank you! François.

Penny Wyatt Atlassian Team Jul 09, 2012

That's JavaScript, you'll need to wrap it in <script> </script> tags for it to execute.

David Simpson Community Champion Jul 09, 2012

François, Penny is exactly right. wrap it in script tags :)

Dear friends,

It works like a charm. and better as I could imagine.

Thank you ...

François.

0 vote
Penny Wyatt Atlassian Team Jul 03, 2011

In which application? JIRA, Confluence, or Answers itself?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
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