Documentation for JIRA 4.3. Documentation for other versions of JIRA is available too.

Skip to end of metadata
Go to start of metadata

By default, JIRA issue keys (aka Issue IDs) are of the format <project key>-<issue number>, eg. ABC-123. This general format is not changeable. However it is possible to alter the project key format in the file, where it is defined as a regular expression:

jira.projectkey.pattern = ([A-Z][A-Z]+)

As you can see, the default is two or more A-Z characters. If, for instance, you wanted to allow numbers (eg. 'ABC2-123'), you would change the regular expression to ([A-Z][A-Z0-9]+).

Also, although JIRA normally starts counting from 1 ('ABC-1', 'ABC-2' etc) you can adjust the starting count by editing the project.pcounter row in the database. JIRA caches this value in memory, so first shutdown your JIRA instance before updating the database. Then make the change in the database, then restart JIRA.

(tick) Tip:

  • You should be able to find this file in your JIRA installation directory under:

    (You may need to search hidden files and folders for this file to appear.)

Important note for customers with GreenHopper or who have integrated JIRA with Bamboo

(warning) If you use GreenHopper or have integrated JIRA with Bamboo, you should avoid changing JIRA's default project key format as both GreenHopper and Bamboo only support this key format.

  • No labels