Closed masakazuwatanabe closed 10 months ago
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.10
Bug description
hello. I'm having a problem because I can't get the list of project tasks with API.
This problem also occurs in Ver9.4.5 - Ver9.5.7 and letter. https://github.com/glpi-project/glpi/issues/6818 https://github.com/glpi-project/glpi/issues/12211
Set Project to Seeall in your profile.
If "See all" in "Projects" of "Profile" is checked,
but,
It seems that the task team is used as a condition for querying the project task, regardless of the status of the SeeAll permission of the project.
https://github.com/glpi-project/glpi/blob/10873706f388795a1d0d72a028eb4ceba36f7169/src/Search.php#L4251-L4281
There is no way to list all project tasks in REST-API. If all projects have permissions Just as the WebUI shows all the tasks, I also want to get a list of all tasks in REST-API.
Please note that this issue arises when using getallItems(apirest.php/ProjectTask). (It's not with Search.)
Relevant log output
No response
Page URL
/apirest.php/ProjectTask
Steps To reproduce
No response
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response