Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Get an itemtype with all sub-items #1

Open
btry opened this issue Aug 24, 2017 · 6 comments
Open

Get an itemtype with all sub-items #1

btry opened this issue Aug 24, 2017 · 6 comments
Assignees
Milestone

Comments

@btry
Copy link
Collaborator

btry commented Aug 24, 2017

For example: get a computer or a ticket should allow to get linked items and return as answer an object for the main item, and sub objects for linked ones.

Getting sub items must be optional

@ajsb85 ajsb85 added this to the 1.0 milestone Oct 26, 2017
@ajsb85 ajsb85 added the feature label Oct 26, 2017
@ajsb85 ajsb85 changed the title Feature: be able to get an itemtype with all sub-items Get an itemtype with all sub-items Nov 1, 2017
@ajsb85
Copy link
Contributor

ajsb85 commented Nov 1, 2017

Hi, @DIOHz0r

The project board show this task is in progress.
What is the PR or branch related to this work?

Thanks

@DIOHz0r
Copy link
Contributor

DIOHz0r commented Nov 1, 2017

@ajsb85 This fetaure hasn't been implemented.

@ajsb85
Copy link
Contributor

ajsb85 commented Nov 1, 2017

@DIOHz0r So, could you update all tasks of the project board?

@DIOHz0r
Copy link
Contributor

DIOHz0r commented Nov 12, 2017

Hi @ajsb85, I don't have the permission to update the project board. I'll do that when you give me the access.

@ajsb85 ajsb85 self-assigned this Feb 2, 2018
@ajsb85 ajsb85 assigned DIOHz0r and btry and unassigned ajsb85 Apr 25, 2018
@sebeka
Copy link

sebeka commented Oct 19, 2018

As a hint for current situation, for you can already use the getItem()with parameters, like with_softwares , with_tickets ...
You only have top add them right after the ID in http-get-style.
like:
$response = $itemHandler->getItem('Computer', '2?with_softwares=true&expand_dropdowns=true');
https://github.com/glpi-project/glpi/blob/master/apirest.md#get-an-item

@ajsb85
Copy link
Contributor

ajsb85 commented Oct 19, 2018

Hi, @sebeka
yes, it's possible, but it is not a right way.
We should propose to parse as number the Item ID and send those params apart.

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

No branches or pull requests

4 participants