Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search engine #16

Open
mkosterin opened this issue Sep 21, 2017 · 2 comments
Open

search engine #16

mkosterin opened this issue Sep 21, 2017 · 2 comments

Comments

@mkosterin
Copy link

Hello my friend.
I tried use glpi-sdk-python for integration my GLPI with another software.
So I can't make correct request for search all tickets with some criteria. For example, I need recieve all tickets with "in progress" state:
I wrote some code:
print json.dumps(glpi.search('ticket', {"criteria": [{"field": "status", "value": "2"}]}),
indent=4,
separators=(',', ': '),
sort_keys=True)
Method "search" get all items before, GLPI API return only 100 first items. So today I have >5000 tickets.
Couls you wtite some example, how can I use search method in your SDK?
Thank you.

@augustoferronato
Copy link

augustoferronato commented Sep 26, 2017

Hi,
thanks, @mtulio can you help us?

@poikilotherm
Copy link

Hey guys,

just digging inside the code...

From as far as I understand it, currently the range parameter is not supported and will thus fall back to the default value.

Maybe @mtulio will accept a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants