@classmethod
def get_jira_ticket_key_from_branch(cls, branch):
    """Construct a Jira ticket key based on the git branch name.

        For now it only replaces underscores with dashes and makes it uppercase.
        Eg. "proj_xxxx" -> "PROJ-XXXX"
        """
    if branch:
        jira_ticket_key = branch.upper().replace('_', '-')
    else:
        jira_ticket_key = None
    return jira_ticket_key
