> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enneo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all worklogs for a ticket

> Retrieve all worklog entries associated with a specific ticket, including their linked assessments and detailed worklog information.



## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /ticket/{ticketId}/worklog
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /ticket/{ticketId}/worklog:
    get:
      tags:
        - Quality Management
      summary: Get all worklogs for a ticket
      description: >-
        Retrieve all worklog entries associated with a specific ticket,
        including their linked assessments and detailed worklog information.
      operationId: getTicketWorklogs
      parameters:
        - name: ticketId
          in: path
          required: true
          description: Ticket ID
          schema:
            type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                description: Array of worklog entries with their assessments and details
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      description: Worklog ID
                    ticketId:
                      type: integer
                      description: Ticket ID
                    date:
                      type: string
                      format: date
                      description: Date of the worklog entry
                    latestInteraction:
                      type: string
                      format: date-time
                      nullable: true
                      description: Latest interaction timestamp for this worklog
                    assessments:
                      type: array
                      description: All quality assessments associated with this worklog
                      items:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: Assessment ID
                          scorecardId:
                            type: integer
                            description: Scorecard ID used for this assessment
                    worklog:
                      type: object
                      description: General worklog information
                      properties:
                        userId:
                          type: integer
                        worklogId:
                          type: integer
                        latestInteraction:
                          type: string
                          format: date-time
                          nullable: true
                        ticketId:
                          type: integer
                        conversationId:
                          type: integer
                          nullable: true
                        action:
                          type: string
                          enum:
                            - closeAction
                            - readAction
                            - statusAction
                            - writeAction
                            - autoProcessAction
                        actionList:
                          type: array
                          items:
                            type: string
                        actionListText:
                          type: array
                          items:
                            type: string
                    aiUsage:
                      type: object
                      description: AI usage information for this worklog
                      properties:
                        automationLevel:
                          type: integer
                          description: Automation level (0-5)
                        automationLevelLabel:
                          type: string
                        aiAgents:
                          type: array
                          items:
                            type: object
                    time:
                      type: object
                      description: Time tracking information
                      properties:
                        duration:
                          type: integer
                          description: Total duration in seconds
                        durationAfterWork:
                          type: integer
                          description: After-work duration in seconds
                        segments:
                          type: array
                          items:
                            type: object
                    customerExperience:
                      type: object
                      description: Customer experience metrics
                      properties:
                        slaMet:
                          type: boolean
                        netSecondsClosedAfterSla:
                          type: integer
                        closingDateForSLA:
                          type: string
                          format: date-time
                          nullable: true
                        dueDateForSLA:
                          type: string
                          format: date-time
                          nullable: true
                        reOpened:
                          type: boolean
                        csat:
                          type: object
                          nullable: true
              examples:
                default:
                  summary: Two worklog entries for a ticket with their assessments
                  value:
                    - id: 551
                      ticketId: 8821
                      date: '2024-06-12'
                      latestInteraction: '2024-06-12T09:59:00Z'
                      assessments:
                        - id: 901
                          scorecardId: 42
                        - id: 902
                          scorecardId: 43
                      worklog:
                        userId: 23
                        worklogId: 551
                        latestInteraction: '2024-06-12T09:59:00Z'
                        ticketId: 8821
                        conversationId: 331
                        action: closeAction
                        actionList:
                          - reply
                          - closed
                        actionListText:
                          - Sent reply to customer
                          - Closed ticket
                      aiUsage:
                        automationLevel: 2
                        automationLevelLabel: Assisted
                        aiAgents:
                          - id: 5
                            name: Email Assistant
                            description: Generates email responses
                            intelligence: smart
                            textAssistanceAccuracy: 0.92
                            actions: null
                      time:
                        duration: 480
                        durationAfterWork: 120
                        segments:
                          - userTimeTrackingId: 1201
                            from: '2024-06-12T09:51:00Z'
                            to: '2024-06-12T09:59:00Z'
                            actionList:
                              - reply
                              - closed
                            actionListText:
                              - Sent reply to customer
                              - Closed ticket
                      customerExperience:
                        slaMet: true
                        netSecondsClosedAfterSla: -1800
                        closingDateForSLA: '2024-06-12T09:59:00Z'
                        dueDateForSLA: '2024-06-12T10:30:00Z'
                        reOpened: false
                        csat:
                          id: 88
                          scale: 5
                          answerStars: 5
                          answerText: Great service!
                    - id: 552
                      ticketId: 8821
                      date: '2024-06-13'
                      latestInteraction: '2024-06-13T07:45:00Z'
                      assessments: []
                      worklog:
                        userId: 23
                        worklogId: 552
                        latestInteraction: '2024-06-13T07:45:00Z'
                        ticketId: 8821
                        conversationId: 332
                        action: writeAction
                        actionList:
                          - reply
                        actionListText:
                          - Sent reply to customer
                      aiUsage:
                        automationLevel: 1
                        automationLevelLabel: Monitor
                        aiAgents: []
                      time:
                        duration: 360
                        durationAfterWork: 60
                        segments:
                          - userTimeTrackingId: 1215
                            from: '2024-06-13T07:39:00Z'
                            to: '2024-06-13T07:45:00Z'
                            actionList:
                              - reply
                            actionListText:
                              - Sent reply to customer
                      customerExperience:
                        slaMet: true
                        netSecondsClosedAfterSla: 0
                        closingDateForSLA: '2024-06-13T08:10:00Z'
                        dueDateForSLA: '2024-06-13T08:30:00Z'
                        reOpened: false
                        csat: null
        '403':
          description: Unauthorized
        '500':
          description: Internal error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````