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'
));
Actions