Jump to content


API p_tickets_list filter on p_status=0 is not working


3 replies to this topic

#1 Wessel

    Member

  • Members
  • PipPip
  • 13 posts

Posted 06 December 2018 - 09:58 AM

Hi,

I'm trying to retrieve the list of Open/unopened tickets (p_status=0 ) (for nagios I like to track this)

API Docu: https://www.livezill..._section=Ticket

Running the following line:
curl https://localhost/api/v2/api.php \
	  -d "p_user=<username>" \
	  -d "p_pass=<password>" \
	  -d "p_tickets_list=1" \
	  -d "p_status=0" \
	  -d "p_json_pritty=1" -X POST |jq

Always returns:
{
  "Tickets": []
}

Leaving the p_status=0 out, will give me all tickets including the status open.

Using any other number of the p_status 1~4 works and gives me the correct list of tickets in that state.
Filtering on the p_status=0 just seems not to work..

Options for p_status
[0] = Open <=== This one can not be filtered.
[1] = In Progress
[2] = Closed
[3] = Deleted
[4] = Pending

Is there a mistake at my side, or is this not yet working :smile:


Any other alternative to finding the amount of unopend/new tickets with the API ?

Wessel

#2 Patrick Keil

    Administrator

  • Administrators
  • 3664 posts
  • LocationSingen, Germany

Posted 06 December 2018 - 12:41 PM

Hi Wessel,

Thanks, we will fix that with 8.0.0.5 coming later this month.

#3 Wessel

    Member

  • Members
  • PipPip
  • 13 posts

Posted 07 December 2018 - 02:41 PM


Thanks!

#4 Patrick Keil

    Administrator

  • Administrators
  • 3664 posts
  • LocationSingen, Germany

Posted Yesterday, 02:19 PM

We did some research, the problem can't be reproduced on our side.

Quote

[0] = Open <=== This one can not be filtered.
We get several tickets within the given timespan having status 0.

Please check and double check if other filters make sense.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users