Actions
Defect #10433
closedREST API Create Subproject not working
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
I am using the REST API in PHP. I have been successful in creating projects, but unsuccessful in creating subprojects.
I used the "parent_id" parameter as shown here: #7404
Here is the code I am using:
$rm_project = new Redmine_Project(array(
'name' => 'Project',
'identifier' => 'project1',
'description' => 'desc'
));
$rm_project->save();
$rm_sub_project = new Redmine_Project(array(
'name' => 'Sub Project',
'parent_id' => $rm_project->id,
'identifier' => 'subproject1',
'description' => 'testing'
));
Updated by Justin Da Silva almost 13 years ago
- Status changed from New to Resolved
Sorry, my mistake... I forgot to run the save method on the subproject...
$rm_sub_project->save();
I have verified that the "parent_id" attribute does in fact work.
Updated by Go MAEDA about 8 years ago
- Category set to REST API
- Status changed from Resolved to Closed
- Resolution set to Invalid
Actions