How to prefill new ticket via querystring parameters

Creation date: 12/15/2015 2:47 PM    Updated: 9/16/2025 8:05 PM

Overview

If you're looking to streamline the process of submitting a new ticket, you can pre-fill certain form fields using query string parameters in the URL. This can save time and ensure that important information is included right from the start.

How It Works

You can pass specific URL parameters to automatically populate the following fields:

  • subject: The title or subject of the ticket.
  • body: The main content or description of the ticket.
  • categoryId: This is the ID for the category of the ticket, which can be found in the admin section.
  • priority: This indicates the urgency of the ticket. You can use the following options:
    • -1: Low
    • 0: Normal
    • 1: High
    • 2: Critical
    • Or a custom "priority ID" as defined in the admin section.

Example Usage

To pre-fill a new ticket, you would format your URL as shown below:

[helpdesk-root-url]/Tickets/New?categoryId=1&subject=test&body=hello,%20world!&priority=0

Tips

  • Make sure to replace [helpdesk-root-url] with the actual root URL of your helpdesk system.
  • Adjust the values of categoryId, subject, body, and priority according to your needs to ensure they accurately reflect the ticket you want to create.
Common setup tasks and solutions