Search found 21 matches

by ATD39401
30 Oct 2024, 22:58
Forum: Help
Topic: TicketUpdate returning as expected but tickets are not moved to a different queue
Replies: 0
Views: 41947

TicketUpdate returning as expected but tickets are not moved to a different queue

Hello all! I am writing some Python scripts for our ticket system, and I'm currently writing one to automatically move tickets of a certain age or older from a queue called "ECommunications" to one called "Misc" without changing any other properties of the ticket. Below is the co...
by ATD39401
12 Aug 2024, 17:06
Forum: Help
Topic: TicketUpdate function invalid parameter
Replies: 0
Views: 28772

TicketUpdate function invalid parameter

Hello all, I'm running into an issue with updating information on a ticket. I have a Python script that's feeding the following parameters into a POST call with Python's requests library. I have data from the ticket that needs to be updated fed into the parameters like this. What might I be missing ...
by ATD39401
08 Aug 2024, 19:46
Forum: Help
Topic: TicketCreate operation returns with a "MissingParameter" error
Replies: 8
Views: 5732

Re: TicketCreate operation returns with a "MissingParameter" error

Is the system configuration Ticket::Type enabled?
Turns out it was not. However after enabling this change in the system configuration and deploying it, I still get the same error back when running my script.
by ATD39401
08 Aug 2024, 17:06
Forum: Help
Topic: TicketCreate operation returns with a "MissingParameter" error
Replies: 8
Views: 5732

Re: TicketCreate operation returns with a "MissingParameter" error

Hi, Is the ticket type enabled in your system? If yes, add parameter to the payload. - Roy P.S.: Set the log level to debug I'm not sure what you mean by ticket type, but a route for the TicketCreate operation is enabled, and I have changed the following section of my web service configuration to a...
by ATD39401
07 Aug 2024, 20:08
Forum: Help
Topic: TicketCreate operation returns with a "MissingParameter" error
Replies: 8
Views: 5732

Re: TicketCreate operation returns with a "MissingParameter" error

Nothing obvious: the logger doesn't seem to have even recorded the "TicketCreate" operation, only "TicketGet" calls made earlier in my script. Below is what returns from the API call I posted. {'Error': {'ErrorMessage': 'TicketCreate: Ticket parameter is missing or not valid!', '...
by ATD39401
05 Aug 2024, 22:50
Forum: Help
Topic: TicketCreate operation returns with a "MissingParameter" error
Replies: 8
Views: 5732

TicketCreate operation returns with a "MissingParameter" error

I'm getting data for ticket A with the Ticket::TicketSearch operation, and I want to make a new ticket B and make its body text the same as ticket A's body text. I'm trying to call Ticket::TicketCreate ( documentation I'm following ) for this. However, I'm getting back the error TicketCreate.Missing...
by ATD39401
01 Aug 2024, 18:36
Forum: Help
Topic: GET request returning all ticket IDs in main queue rather than just a desired subqueue
Replies: 0
Views: 17644

GET request returning all ticket IDs in main queue rather than just a desired subqueue

I'm having some weirdness occur when I run a Python script to grab ticket IDs from a subqueue we've set up in our OTRS instance. Despite specifying the subqueue I want and setting the UseSubQueues flag appropriately, my API call still pulls tickets from the main queue that fit the other parameters. ...
by ATD39401
26 Jul 2024, 20:54
Forum: Help
Topic: [SOLVED] Ticket::TicketGet route in my web service not working
Replies: 3
Views: 5893

Re: Ticket::TicketGet route in my web service not working

Thank you for pointing that out! I was staring at that route for awhile and hadn't noticed. How would one return the Article data (body text, to email, etc.) from the ticket data? I don't see the Article nested in the JSON when I return tickets, as shown in the documentation here. https://otrscommun...
by ATD39401
26 Jul 2024, 19:36
Forum: Help
Topic: [SOLVED] Ticket::TicketGet route in my web service not working
Replies: 3
Views: 5893

[SOLVED] Ticket::TicketGet route in my web service not working

Hello everyone! I am developing an automation tool that collects ticket IDs from the Kernel::GenericInterface::Operation::Ticket::TicketSearch interface and performs operations on each ticket. I'm trying to access ticket information by looping through each ID and calling the Kernel::GenericInterface...
by ATD39401
24 Jul 2024, 21:04
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

Quick addendum after re-reading the documentation: should my route for hitting the tickets I want be called as shown below? [HOST]/ConvCopierReports/TicketSearch?QueueID=27&TicketCreateTimeNewerMinutes=43200&Title=%27Meter+Readings+Due%27?[CREDENTIALS] EDIT: long story short I should have en...
by ATD39401
24 Jul 2024, 19:09
Forum: Help
Topic: REST Web service Authfail
Replies: 6
Views: 9870

Re: REST Web service Authfail

I was reading through some threads and found this solution to a similar problem I'm having. However when I try to return something from curl it keeps giving me an empty reply with code 52 as shown below. Do you recall running into this issue? * Request completely sent off * schannel: server close no...
by ATD39401
23 Jul 2024, 21:00
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

Sure, thank you Roy! Here's the current version.

EDIT: I generated a new web service to test but forgot some things so I made appropriate changes. Attached is the associated YAML file.
by ATD39401
23 Jul 2024, 18:49
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

Yes, the credentials have been purposefully omitted. When I try this I get an error from curl saying that the URL is not formatted correctly, listed below.

Code: Select all

* URL rejected: Malformed input to a URL function
* Closing connection
curl: (3) URL rejected: Malformed input to a URL function
by ATD39401
23 Jul 2024, 16:45
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

I am currently trying to test this query using curl and adding header formatting as shown below. curl -v -H "Accept: application/json" "https://[SITE]/otrs/nph-genericinterface.pl/Webservice/ConvCopier/Ticket/TicketSearch?QueueID=27&TicketCreateTimeNewerMinutes=43200&Title=%27...
by ATD39401
23 Jul 2024, 16:03
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

To confirm, calling on the TicketSearch operation attached with the following parameters should return what I want, correct? https://[SITE]/otrs/nph-genericinterface.pl/Webservice/ConvCopier/Ticket/TicketSearch/:TicketID?QueueID=27&TicketCreateTimeNewerMinutes=43200&Title=%27Meter Readings D...
by ATD39401
22 Jul 2024, 14:36
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

I thought I had already set that up. Attached are screenshots showing what my REST provider settings currently look like.
by ATD39401
19 Jul 2024, 23:03
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

Re: invoker for getting tickets with a certain queue, subject, and date range

Thanks for the help! Unfortunately updating OTRS versions will not be possible at this time. Is there any way to load the interface I made in Perl manually or modify anything where OTRS is hosted so what I wrote with PyOTRS will hit it and return what I need?
by ATD39401
19 Jul 2024, 21:25
Forum: Help
Topic: [SOLVED] getting tickets with a certain queue, subject, and date range
Replies: 13
Views: 5964

[SOLVED] getting tickets with a certain queue, subject, and date range

Hello, I'm trying to write and enable an invoker that I can use to return tickets in a certain queue, with a certain subject line, and in a certain date range. I've been trying make sense of constructing this by reviewing OTRS's native Ticket::TicketGet invoker and was hoping for advice. I also don'...
by ATD39401
15 Jul 2024, 17:00
Forum: Developers
Topic: controller for REST web service not active or present
Replies: 1
Views: 47017

controller for REST web service not active or present

I'm getting the following message when I set up a configuration for a couple custom routes I need for some ticket automation. At least one operation has a controller that is either not active or not present, please check the controller registration or delete the operation Would I be missing somethin...
by ATD39401
01 Jul 2024, 18:03
Forum: Developers
Topic: [SOLVED] can't contact web service I just made
Replies: 3
Views: 49854

Re: can't contact web service I just made

Sorry about that! The web service config is posted here.
by ATD39401
01 Jul 2024, 15:29
Forum: Developers
Topic: [SOLVED] can't contact web service I just made
Replies: 3
Views: 49854

[SOLVED] can't contact web service I just made

Hello all, I'm new to developing with OTRS and wanted some guidance regarding a web service I just made. When I try to get data from it or even ping the webservice URL per OTRS's documentation, I get no signs of life. I get no data, and any attempts to contact it say the host can't be found. Is ther...