Sphinx role for referencing a JIRA ticket with ticket numbers
    enclosed in braces. Useful for changelogs.

    Examples::

        :jirab:`DM-6181` -> [DM-6181]
        :jirab:`DM-6181,DM-6181` -> [DM-6180, DM-6181]
        :jirab:`DM-6181,DM-6181,DM-6182` -> [DM-6180, DM-6181, DM-6182]

def jira_bracket_role(name, rawtext, text, lineno, inliner,
                      options=None, content=None,
                      open_symbol='[', close_symbol=']'):
    """Sphinx role for referencing a JIRA ticket with ticket numbers
    enclosed in braces. Useful for changelogs.

    Examples::

        :jirab:`DM-6181` -> [DM-6181]
        :jirab:`DM-6181,DM-6181` -> [DM-6180, DM-6181]
        :jirab:`DM-6181,DM-6181,DM-6182` -> [DM-6180, DM-6181, DM-6182]
    """
    node_list, _ = jira_role(name, rawtext, text, lineno, inliner,
                             options=options, content=None, oxford_comma=False)
    node_list = nodes.raw(text=open_symbol, format='html') \
        + node_list + nodes.raw(text=close_symbol, format='html')
    return node_list, []