Skip to content

drag&drop doesn't work with project tree #1157

Open
@fuminori-ido-m

Description

@fuminori-ido-m

When projects are tree structure and each story points to sub-tree, drag&drop on backlog page doesn't work.

lib/backlogs_project_patch.rb adds droppable_sprints method which generates like the following data-structure (*a):

{
  project-id-A, [story-a, story-b, ...],
  project-id-B, [story-c, story-d, ...],
  ...
}

When project A is a sub-node of project B, backlog page sprint is as follows:

Sprint-X
story-a
story-b
story-c
story-d

and each story line keeps project-id the story refers, while RB.constants.project_versions which map (*a) above.
When Sprint-X belongs to project-B (parent of project-A), drag story-a --> project-A --> d RB.constants.project_versions[project-A] doesn't contain Sprint-X. This is why story-a and story-b are not enabled to drag on mouseDown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions