You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-06-21 22:17:36

diogo86
Member
Registered: 2020-06-21
Posts: 4

[Solved] Ticket from ITILFollowup search results

Hello.

I'm searching for follow ups between two dates using this endpoint:

/apirest.php/search/ITILFollowup

With these parameters:

{
  forcedisplay: [3, 5],
  criteria: [
    { field: 3, searchtype: 'morethan', value: '2020-06-01 00:00:00' },
    { link: 'AND', field: 3, searchtype: 'lessthan', value: '2020-06-20 23:59:59' },
  ],
}

And I'm getting a response like this:

data: [
  { 1: 'Content...', 3: 'Date...', 5: User...' },
  { 1: 'Content...', 3: 'Date...', 5: User...' },
  { 1: 'Content...', 3: 'Date...', 5: User...' },
  ...
]

How can I also get the corresponding ticket ID from each of those follow ups? If this is not possible on this endpoint, how else can I list tickets that got follow ups in between two dates?

Thank you in advance.

Last edited by diogo86 (2020-06-22 14:55:56)

Offline

#2 2020-06-22 09:27:33

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: [Solved] Ticket from ITILFollowup search results

try with 

/search/Ticket

and {
  forcedisplay: [2,25,3,93],
  criteria: [
    { field: 36, searchtype: 'morethan', value: '2020-06-01 00:00:00' },
    { link: 'AND', field: 36, searchtype: 'lessthan', value: '2020-06-20 23:59:59' },
  ],
}


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#3 2020-06-22 14:55:44

diogo86
Member
Registered: 2020-06-21
Posts: 4

Re: [Solved] Ticket from ITILFollowup search results

Thank you. That's exactly what I needed.

Offline

Board footer

Powered by FluxBB