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

fabby September 7, 2012

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 7, 2012

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.

fabby September 9, 2012

hi,Nic

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 9, 2012

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.

fabby September 9, 2012

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