def property_name(property, index):
 statuses = ['', '', 'Open', 'Pending', 'Resolved', 'Closed', 'Waiting on Customer', 'Job Application', 'Monthly']
 priorities = ['', 'Low', 'Medium', 'High', 'Urgent']
 if (property == 'status'):
  return (statuses[index] if (index < len(statuses)) else str(index))
 elif (property == 'priority'):
  return (priorities[index] if (index < len(priorities)) else str(index))
 else:
  raise ValueError('Unknown property')

def property_name ( property , index ) : statuses = [ '' , '' , 'Open' , 'Pending' , 'Resolved' , 'Closed' , 'Waiting on Customer' , 'Job Application' , 'Monthly' ] priorities = [ '' , 'Low' , 'Medium' , 'High' , 'Urgent' ] if ( property == 'status' ) : return ( statuses [ index ] if ( index < len ( statuses ) ) else str ( index ) ) elif ( property == 'priority' ) : return ( priorities [ index ] if ( index < len ( priorities ) ) else str ( index ) ) else : raise ValueError ( 'Unknown property' )
the freshdesk api is currently pretty broken: statuses are customizable but the api will only tell you the number associated with the status .