@staticmethod
def get_path(num):
    """Get a path from the workitem number.

        For example: 31942 will return 30000-39999/31000-31999/31900-31999
        """
    num = int(num)
    dig_len = len(str(num))
    paths = []
    for i in range(dig_len - 2):
        divisor = 10 ** (dig_len - i - 1)
        paths.append('{}-{}'.format(num // divisor * divisor, (num //
            divisor + 1) * divisor - 1))
    return '/'.join(paths)
