Ticket Api does not return Tags

Infos:

  • Used Zammad version: 3.4
  • Used Zammad installation source: package install with elasticsearch
  • Operating system: Ubuntu 18.04
  • Browser + version: Chome 80

Expected behavior:

  • When Ticket Api (Show or search) is called, the response JSON should contain a key for tags and provide list of tags or tag ids.

Actual behavior:

  • Ticket Show and Search apis return JSON with no key for Tags.
    Example Response from API -

    {

      "id": 88,
    
      "group_id": 9,
    
      "priority_id": 2,
    
      "state_id": 4,
    
      "organization_id": 2,
    
      "number": "86088",
    
      "title": "Missed call from sudipta@roadmatics.com",
    
      "owner_id": 3,
    
      "customer_id": 3,
    
      "note": null,
    
      "first_response_at": null,
    
      "first_response_escalation_at": "2020-07-17T10:51:35.111Z",
    
      "first_response_in_min": null,
    
      "first_response_diff_in_min": null,
    
      "close_at": "2020-07-17T11:08:56.200Z",
    
      "close_escalation_at": null,
    
      "close_in_min": null,
    
      "close_diff_in_min": null,
    
      "update_escalation_at": null,
    
      "update_in_min": null,
    
      "update_diff_in_min": null,
    
      "last_contact_at": null,
    
      "last_contact_agent_at": null,
    
      "last_contact_customer_at": null,
    
      "last_owner_update_at": "2020-07-17T11:09:28.320Z",
    
      "create_article_type_id": 10,
    
      "create_article_sender_id": 1,
    
      "article_count": 3,
    
      "escalation_at": null,
    
      "pending_time": null,
    
      "type": null,
    
      "time_unit": null,
    
      "preferences": {
    
          "escalation_calculation": {
    
              "first_response_at": null,
    
              "last_update_at": "2020-07-17T09:51:35.111Z",
    
              "close_at": null,
    
              "sla_id": 2,
    
              "sla_updated_at": "2020-07-14T14:31:59.859Z",
    
              "calendar_id": 1,
    
              "calendar_updated_at": "2020-07-17T06:11:49.905Z",
    
              "escalation_disabled": true
    
          }
    
      },
    
      "updated_by_id": 10,
    
      "created_by_id": 3,
    
      "created_at": "2020-07-17T09:51:35.111Z",
    
      "updated_at": "2020-07-17T11:09:28.310Z"
    

    }

Screenshot of same ticket on Zammad

Steps to reproduce the behavior:

Call Ticket Show Api like
https://support.roadmatics.com/api/v1/tickets/88

You need another request for the ticket’s tags. This link should help: https://docs.zammad.org/en/latest/api/tags.html

1 Like

Yes, Got it.
Much appreciated.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.