OSTicket API
  • Introduction
  • Get Started
    • How to Use
    • Authentication
    • Request Structure
    • Configuration
  • Ticket
    • 🟢[POST] Add
    • 🟢[POST] Reply
    • 🟢[POST] Close
    • 🔵[GET] Specific
    • 🔵[GET] Status
    • 🔵[GET] Creation Date
    • 🔵[GET] Creation Date by Status
  • Users
    • 🟢[POST] Add
    • 🔵[GET] Specific by ID
    • 🔵[GET] Specific by Email
    • 🔵[GET] Creation Date
  • Departments
    • 🟢[POST] Add
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] Name
  • Tasks
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] By Ticket
  • SLA
    • 🟢[POST] Add
    • 🔴[DELETE] Delete
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
  • FAQ
    • 🔵[GET] Specific
    • 🔵[GET] All
  • Topics
    • 🔵[GET] Specific
    • 🔵[GET] All
Powered by GitBook
On this page
  1. Tasks

[GET] By Ticket

Fetch all tasks from a ticket

Base URL:

{YOUR-DOMAIN}/upload/ost_wbs/

[ Header ] Authentication

Field
Type
Mandatory

apikey

string

✔️

[ Body ] parameters

Option
Type
Mandatory

query

string

✔️

condition

string

✔️

sort

string

✔️

ticket_id

int

✔️

Body request example:

{
"query":"tasks",
"condition":"all",
"sort": "byTicket",
"parameters":{
    "ticket_id": 23
    }
}

Status Code

{
    "status": "Success",
    "time": 0.02775883674621582,
    "data": {
        "total": 3,
        "tasks": [
            {
                "task_id": "18",
                "title": "Titulo 1",
                "description": "<p>Titulo 1</p>",
                "created": "2022-06-27 22:10:12"
            },
            {
                "task_id": "19",
                "title": "Titulo 2",
                "description": "<p>Titulo 2<br /></p>",
                "created": "2022-06-27 22:10:23"
            },
            {
                "task_id": "20",
                "title": "Titulo 3",
                "description": "<p>Titulo 3</p>",
                "created": "2022-06-27 22:10:54"
            }
        ]
    }
}
{
    "status": "Error",
    "data": "No items found."
}
Previous[GET] Creation DateNext[POST] Add

Last updated 2 years ago

🔵