예제 #1
0
    def list_ticket_fields(self, **kwargs):
        url = "ticket_fields"
        ticket_fields = []

        if "type" in kwargs:
            url = "{}?type={}".format(url, kwargs["type"])

        for tf in self._api._get(url):
            ticket_fields.append(TicketField(**tf))
        return ticket_fields
예제 #2
0
    def list_ticket_fields(self, **kwargs):
        url = 'ticket_fields'
        ticket_fields = []

        if kwargs.has_key('type'):
            url = "{}?type={}".format(url, kwargs['type'])

        for tf in self._api._get(url):
            ticket_fields.append(TicketField(**tf))
        return ticket_fields