Defect #13074

Subtasks are not being created correctly

Added by Damtek damtek almost 10 years ago. Updated about 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution: Affected version:2.1.6

Description

Hi all, im using 2.1.x branch of redmine:Environment:

_ Redmine version 2.1.6.stable.11293
Ruby version 1.8.7 (i486-linux)
Rails version 3.2.11
Environment production
Database adapter MySQL
Redmine plugins:
progressive_projects_list 0.0.1
redmine_custom_workflows 0.0.4
redmine_monitoring_controlling 0.1.1
_

When i try to create a subtask from the issue overview (with add subtask feature) the subtask is created but not related as subtask from parent.

URL link i can see when i click "add subtask" is the following:

https://XX.XX.XX.XX/projects/2013-00125/issues/new?issue[parent_issue_id]=322

I fill all the fields on the web form and submit the creation of subtask with a successful message (Task #323 Created).

Looking at logfile, i can see this:

Started POST "/projects/2013-00125/issues" for XX.XX.XX.XX at Mon Feb 04 10:24:02 +0100 2013
Processing by IssuesController#create as HTML
Parameters: {"commit"=>"Create", "project_id"=>"2013-00125", "authenticity_token"=>"3omidybfrwxqYb//VrwvvwwqaIEhOrQTRVBPQxf66r=", "utf8"=>"รข", "issue"=>{"custom_field_values"=>{"16"=>"EyP"}, "priority_id"=>"2", "is_private"=>"0", "subject"=>"TEST SUBTASK", "assigned_to_id"=>"1", "tracker_id"=>"5", "due_date"=>"", "description"=>"test subtask", "status_id"=>"15"}, "attachments"=>{"1"=>{"description"=>""}}}

But i can't see any information about "parent_id" task in the logfile when issue is created. To confirm this situation, i check IRB and get following info:

_irb(main):001:0> Issue.find(322)
Issue Load (5.2ms) SELECT `issues`.* FROM `issues` WHERE `issues`.`id` = ? LIMIT 1 "id", 322
=> #<Issue id: 322, tracker_id: 5, project_id: 166, subject: "TEST ISSUE", description: "TEST ISSUE", due_date: "2013-02-19", category_id: nil, status_id: 15, assigned_to_id: 1, priority_id: 2, fixed_version_id: nil, author_id: 1, lock_version: 1, created_on: "2013-02-04 09:19:19", updated_on: "2013-02-04 09:19:20", start_date: "2013-02-04", done_ratio: 10, estimated_hours: nil, parent_id: nil, root_id: 322, lft: 1, rgt: 2, is_private: false>

irb(main):002:0> Issue.find(323)
Issue Load (0.5ms) SELECT `issues`.* FROM `issues` WHERE `issues`.`id` = ? LIMIT 1 "id", 323
=> #<Issue id: 323, tracker_id: 5, project_id: 166, subject: "TEST SUBTASK", description: "test subtask", due_date: "2013-02-19", category_id: nil, status_id: 15, assigned_to_id: 1, priority_id: 2, fixed_version_id: nil, author_id: 1, lock_version: 1, created_on: "2013-02-04 09:24:02", updated_on: "2013-02-04 09:24:03", start_date: "2013-02-04", done_ratio: 10, estimated_hours: nil, parent_id: nil, root_id: 323, lft: 1, rgt: 2, is_private: false>
_

I had this same problem in version 2.1.2, so I updated to 2.1.6 from SVN in order to eliminate this error but still persists.

Could anyone help me out with this or tell me where can be the error?

Thanks in advance.

screen_subtask.PNG - Subtask creation successfully (1.41 KB) Damtek damtek, 2013-02-04 10:59

screen_task.PNG - Issue creation screenshot where no subtask appears (14.1 KB) Damtek damtek, 2013-02-04 10:59

History

#1 Updated by Hubert F. about 9 years ago

In case someone else like me stumbles across this issue:

I had the same problem and subtasks wouldn't work because in Workflow I set "Parent Task" to "read-only" for that user's role.
So it seems that "read-only" also means "not prepopulatable".

It's up to the redmine guys to decide if this is still a defect. In my opinion it is, at least a warning message should be displayed.

Also available in: Atom PDF