def format_issue_key(issue_key_str: str):
    """
    returns formatted issueKey according to <CAPTIAL_LETTERS>-<NUMBERS>
    with capital letters, dash, numbers, no spaces

    Args:
        issue_key_str(str): issue key that caught by RE

    Returns:
        issue_key(str): formatted issue_key

    """

    issue_key_str = issue_key_str.upper().replace(' ', '')

    issue_prefix = ''.join([c for c in issue_key_str if c.isalpha()])
    issue_number = ''.join([c for c in issue_key_str if c.isdigit()])

    issue_key = '{}-{}'.format(issue_prefix, issue_number)

    return issue_key