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

Francois M. FASBENDER July 3, 2011

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
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 3, 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.

Francois M. FASBENDER July 5, 2012

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.

Francois M. FASBENDER July 9, 2012

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 (On Leave to July 2021)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2012

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

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 9, 2012

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

Francois M. FASBENDER July 9, 2012

Dear friends,

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

Thank you ...

François.

0 votes
Penny Wyatt (On Leave to July 2021)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2011

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

Suggest an answer

Log in or Sign up to answer