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 votes

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
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

141 views 6 8
View post

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