Project

General

Profile

Actions

Feature #31804

closed

May I get sub projects via REST API

Added by Alexandr Horbatiuk over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I didn't find this capability in docs
Thank in advance!

Actions #1

Updated by Bernhard Rohloff over 4 years ago

  • Status changed from New to Closed

This is an example of a subproject fetched by http://REDMINE_URL/projects.json. As you can see it contains its parent projects id and name. But you are right, the documentation doesn't show it.


{
  "id":26,"name":"Events",
  "identifier":"events",
  "description":"Planning of all events",
  "parent:
    {
    "id":25,
    "name":"Marketing" 
    },
  "status":1,
  "is_public":false,
  "created_on":"2018-06-09T22:27:33Z",
  "updated_on":"2018-06-10T07:00:28Z" 
}

Actions #2

Updated by Matteo Turra over 4 years ago

I think Alexandr Horbatiuk means the reverse: "get the subproject from its parent", as redmine shows in the project web page.

It would be nice to have http://REDMINE_URL/projects/<id>.json?include=subprojects
Actions

Also available in: Atom PDF