GoOTRS

command module
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 10 Imported by: 0

README

GoOTRS

Documentation

https://otrscommunityedition.com/doc/api/otrs/6.0/Perl/index.html

Help

./gotrs -help
Usage of ./gotrs:
  -AllArticles
        get AllArticles from tiket
  -Attachments
        get Attachments from tiket
  -DynamicFields
        get  DynamicFields from tiket
  -config string
        gotrs config env (default ".env")
  -debugger
        enable debugger
  -get string
        get tiket from OTRS
  -update string
        update tiket in OTRS

Get by id

gotrs -get 744485  -AllArticles=true -Attachments=true -DynamicFields=true | jq .

{
  "Ticket": [
    {
      "Age": 4485388,
      "PriorityID": "3",
      "ServiceID": "",
      "Type": "Default",
      "Responsible": "root@localhost",
...

Update by id

cat test.json                                            
{
  "TicketID": 744485,
  "DynamicField": [{
    "Name": "VIP",
    "Value": "+"
  }]
}

cat test.json | gotrs -update=744485   

Error Message
{
  "Error":{
    "ErrorCode":"TicketUpdate.InvalidParameter",
    "ErrorMessage":"TicketUpdate: DynamicField->Name parameter is invalid!"
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL