Plugins Directory » UK Phone custom field
|
|
Author: | Ghost SIMs |
|---|---|---|
| Website: | https://bitbucket.org/ghostsims/uk-mobile-format/src/main/redmine/redmine_uk_phone/ | |
| Code repository: | https://bitbucket.org/ghostsims/uk-mobile-format.git | |
| Registered on: | 2026-11-25 (11 days ago) | |
| Current version: | 1.0.0 | |
| Compatible with: | Redmine 6.0.x, 5.1.x, 5.0.x | |
| User ratings: |
Adds two custom field formats for UK phone numbers, for trackers that keep them on users, contacts, projects or issues (on-call rotas, customer callbacks, SMS alert recipients).
- UK phone number accepts the ways people actually type a UK number (
07700 900123,+44 7700 900123,0044 7700 900123,+44 (0)7700 900123) and shows it in international form with its kind, for example "+44 7700 900123 (mobile)" or "+442079460000 (landline)". - UK mobile (SMS) does the same but refuses anything outside the standard mobile ranges (071 to 075, 077 to 079, and 07624 for the Isle of Man) and says why, for example "070 is personal numbering (forwarding), not a mobile allocation". Handy for fields that feed SMS alerts or 2FA, where a 070 or 076 number silently never gets the text.
Values are stored as typed, so switching an existing text field over does not rewrite data. The parser is plain Ruby with standalone tests (ruby test/uk_number_test.rb, 27 assertions, Ofcom drama ranges only).
The check follows the prefix rules in the Ofcom numbering plan. It cannot tell whether a number is in service, ported or delivered over VoIP, and a pass does not mean a given service will accept it.
Maintained by Ghost SIMs, where you can rent a UK number for SMS verification codes with a private inbox, if you need a second UK mobile number for sign-ups rather than your own. MIT licence.
Installation notes
cd $REDMINE_ROOT/plugins git clone https://bitbucket.org/ghostsims/uk-mobile-format.git /tmp/uk-mobile-format cp -r /tmp/uk-mobile-format/redmine/redmine_uk_phone .
Restart Redmine, then Administration > Custom fields > New, pick the object (User, Issue, Project...) and choose UK phone number or UK mobile (SMS). No migrations.
Changelog
1.0.0 (2026-11-25)
Compatible with Redmine 6.0.x, 5.1.x, 5.0.x.