Project

General

Profile

Projects with users query

Added by Ruslan K 1 day ago

Hi there!

I have to show a list of projects for the user, by his token.
But redmine admins get all projects, even those not listed as users.
I can use memberships, but then it would require many queries for each project id.
Is there any more flexible solution to get data with project-users or user-projects relationship?


Replies (2)

RE: Projects with users query - Added by Holger Just about 23 hours ago

You can get the details of the current user including all their project memberships by requesting GET /users/current.json?include=memberships. See Rest_Users for details.

RE: Projects with users query - Added by Ruslan K about 4 hours ago

Holger Just wrote in RE: Projects with users query:

You can get the details of the current user including all their project memberships by requesting GET /users/current.json?include=memberships. See Rest_Users for details.

Perfect! Thank you!

    (1-2/2)