How to apply mask to version name field?



I need to use only-digits mask for version name field. How can i make this?




Best regards,

Elena Melyan

1 answer

0 votes

There is no way to do this natively, I'm afraid.

You could try injecting javascript to try to stop people using non-numeric characters, but you  may need to make it work in many places, and javascript is notoriously hard to make work in Jira and hard to maintain or upgrade.

Thank you for your reply.

Is it possible to solve this problem with Bamboo integration (release naming using variables) or try some plugins?

You could use Bamboo with a good naming scheme so that users aren't tempted, but it won't stop them adding their own with letters in them.

Another thought sprang to mind for me - if you're willing to code (or use ScriptRunner), you could write a listener that picks up "version created" events, and does something with them.  My initial idea would be "remove all non-numeric characters and check it's not now a duplicate, removing the version if it is, and renaming it if it's new", but you'd have to explain that carefully to your users.

Thank you for detailed consultation
Can I use webhook for these purposes also ( like a trigger on "version created")?

I've not tried webhooks on events other than issue events.

I suspect you can.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

21,826 views 2 7
Join discussion

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