ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to close a ticket from the command line.

book

Article ID: 53694

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Description

This document gives you the syntax for closing a ticket using the command line utility pdm_text_cmd.

Solution

The following example provides the syntax for closing a ticket from the command line.

  1. If you need to close a ticket with ID 12345, you need a file.txt.

    %SEARCH=REQUEST_ID
    %REQUEST_ID=<Ref#>
    %STATUS=Closed

    where <Ref#> represents the ticket reference number of the ticket you are trying to close. (In this example, it would be 12345)

  2. Save the above statements in a text file

  3. Run the pdm_text_cmd with file.txt as the input file...

    The actual command is

    pdm_text_cmd.exe -t Request -o UPDATE -u <userid> -f file.txt

    where file.txt is the text file specified above and <userid> is the user you wish to commit the update to using.
    (The -u flag is optional)

    The above command will update the ticket and set the status to close.

Environment

Release:
Component: ARGIS