how to remove blank space from both sides of the version before updating to the server on Version Management Tab?

my jira version is 4.4.1

on 'Versions' screen ,we can add new version.

if someone mistakenly add the version A " V0.1.0 ",this version A has blank space on both left and right side of the string.but the people is not aware of wrong version adding.

so what i want is that the jira can automatically remove blank space from both sides of the version before the version is added to the server.

anyone can tell is it possible to implement?

1 answer

0 vote

You'll need to do a bit of coding to do this.

A spot of javascript on the client side, or a "trim" line in the core code.

hi,Nic

where shall i put the javascript? or inwhich file can add the javascript?

Mmm, depends on your version of Jira, but I usually put it in the description of fields. I have a feeling that later versions of Jira will be blocking this though.

hi,Nic

on Version Management Tab,i wonder if the version has field description ?

version is not field.

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 ...

68 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