How do you add a prefix and the issue number to the issue title?

I would like to automatically add a prefix and the issue number to issues’ titles, for example:

FOO-023: Fix foo problem with bar

How do I do this?