Add a format to be serial number in the specified format as a issue custom field.
- "Automatic serial number" is available as a format for custom fields for issues.
- After creating a new custom field, you can not edit the "Regular expression".
- Every user who can create a issue has automatic number assignment authority.
- Automatically assign serial numbers in the specified format at issue registration or update(Including bulk operations).
- Assign a serial number for each custom field. If the same custom field is used for multiple projects, It will be consecutive numbers in those projects.
- Custom field items are displayed when viewing issues. However, it will not be displayed when registering or updating.
- Basic options for custom fields are also available, such as issue filter criteria and search target.
- If the changed tracker does not have the same custom field, the serial number assigned will be deleted.
- If the tracker after change has the same custom field, the serial numbers numbered will not change.
- Setting a custom field for automatic number assignment to read only will not work properly.
- Create a new custom field for the issue.
- Change the item "Format" to "Automatic serial number".
- Specify the serial number format in the item "Regular expression".
- If you wish to use it as a filter or search condition, please check as appropriate.
- Specify the tracker and project you want to number automatically.
- Done!
- If you create a new issue it will be automatically numbered.
- Issues already created will be numbered as they are updated.
Administration > Custom fields > Issues > Automatic serial number
Issues
- Redmine 4.1 (Ruby 2.6)
Column used in year format | Year format | fiscal year(4/1 - 3/31) | e.g. Regular expression | e.g Result (2015-03-31) |
---|---|---|---|---|
Issue#created_on | yyyy |
No | {yyyy}-{0000} |
2015-0001 |
^ | yy |
No | {yy}-{0000} |
15-0001 |
^ | YYYY |
Yes | {YYYY}-{0000} |
2014-0001 |
^ | YY |
Yes | {YY}-{0000} |
14-0001 |
^ | ISO |
No | {ISO}-{0000} |
20150331-0001 |
- OK
{000000}
#=>000001
ABC-{yy}-{00}
#=>ABC-15-01
- NG
- When the end is not the serial number format
- e.g.
ABC-{000}-{yy}
- e.g.
- When format not including year format or serial number format is included.
- e.g.
{abc}-{yy}-{000}
- e.g.
- When the end is not the serial number format
- git clone or copy an unarchived plugin to
plugins/redmine_serial_number_field
on your Redmine path. $ cd your_redmine_path/
$ bundle install
- Please restart Redmine