Hello,
I currently collect phone numbers in various forms using a custom text field which displays the number as 1234567890. Is there a way to customize the field so that there are dashes separating the phone number so that it displays as 123-456-7890?
Without plugins no.
You'd need a new custom field type able to convert this value to your desired format. Somewhat similar to how Number field works - the value is stored as a number, but the renderer adds commas to it for view, and view only.
I'm not familiar with such a plugin though - just to comment you can't do this out of box unless you change the value itself.
Do you have ScriptRunner by a chance? You'd be able to set up a Scripted Field to take the "real" field's value, and change the format: https://scriptrunner.adaptavist.com/6.20.0/jira/scripted-fields.html
Or use the console to modify the values themselves, well, a lot of ways to go I suppose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Radek! I do have script runner and will take a look at the scripted fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.