Often, you need to extract Jira issue keys from a commit message, log line, or description. Example:

package main

Based on Atlassian’s documentation and common implementation across their products (Jira Cloud, Data Center, Bitbucket, Bamboo), the for a single Jira issue key is:

import re

TEST-1 , MOBILE-100 , A-0 .

Match Jira keys in chat messages and auto-expand them with issue titles.