Content
View differences
Updated by Tobias Dillmann 6 days ago
**Context**
Currently, a work package is either in a sprint _or_ in a backlog, but not both. If it's already in a backlog and the user adds it to a sprint, it is removed from that backlog, and vice-versa for when adding something that's in a sprint to a backlog.
Since Sprint and Backlog are two distinct fields, however, this "switch" happens silently and the user might not realise that it's also been removed from the previous backlog/sprint. Unlike in the _Backlog and sprints_ module, she does not have visual feedback in the work package details page (or the work packages table) that shows that this is a _move_ operation.
This feature proposes showing a confirmation dialog that makes this explicit. explicit.
Extends <mention class="mention" data-id="75628" data-type="work_package" data-text="##AGILE-275" data-display-id="AGILE-275">##AGILE-275</mention>
**Acceptance criteria**
* If a work package is already in a sprint and the user then select a backlog to add it to, show a [FeedbackDialog](https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/feedback_dialog/playground?_display=%257B%257D&custom_footer=true&icon=none):
* Icon: none
* Heading: "Remove from sprint?"
* Text: "This work package is already in a sprint. If you add it to a backlog, it will be removed the sprint. Do you want to move it to the backlog anyway?"
Footer:
* "Cancel" (secondary)
* "Move to backlog" (primary)
* If a work package is already in a sprint and the user then select a backlog to add it to, show a [FeedbackDialog](https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/feedback_dialog/playground?_display=%257B%257D&custom_footer=true&icon=none):
* Icon: none
* Heading: "Remove from the backlog?"
* Text: "This work package is currently in a backlog. If you add it to a sprint, it will be removed the backlog. Do you want to move it a sprint anyway?"
Footer:
* "Cancel" (secondary)
* "Move to sprint" (primary)
* This should apply to:
* Work package details page
* Work package table
**Technical notes**
* <br>
**Permissions and visibility considerations**
**Translation considerations**
* Consider using these existing strings to avoid duplicates:
* "Move to sprint": `backlogs.move_to_sprint_dialog_component.title`
* "Move to backlog": `label_agenda_item_move_to_backlog`
**Out of scope**
* <br>
Currently, a work package is either in a sprint _or_ in a backlog, but not both. If it's already in a backlog and the user adds it to a sprint, it is removed from that backlog, and vice-versa for when adding something that's in a sprint to a backlog.
Since Sprint and Backlog are two distinct fields, however, this "switch" happens silently and the user might not realise that it's also been removed from the previous backlog/sprint. Unlike in the _Backlog and sprints_ module, she does not have visual feedback in the work package details page (or the work packages table) that shows that this is a _move_ operation.
This feature proposes showing a confirmation dialog that makes this explicit.
Extends <mention class="mention" data-id="75628" data-type="work_package" data-text="##AGILE-275" data-display-id="AGILE-275">##AGILE-275</mention>
**Acceptance criteria**
* If a work package is already in a sprint and the user then select a backlog to add it to, show a [FeedbackDialog](https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/feedback_dialog/playground?_display=%257B%257D&custom_footer=true&icon=none):
* Icon: none
* Heading: "Remove from sprint?"
* Text: "This work package is already in a sprint. If you add it to a backlog, it will be removed the sprint. Do you want to move it to the backlog anyway?"
Footer:
* "Cancel" (secondary)
* "Move to backlog" (primary)
* If a work package is already in a sprint and the user then select a backlog to add it to, show a [FeedbackDialog](https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/feedback_dialog/playground?_display=%257B%257D&custom_footer=true&icon=none):
* Icon: none
* Heading: "Remove from the backlog?"
* Text: "This work package is currently in a backlog. If you add it to a sprint, it will be removed the backlog. Do you want to move it a sprint anyway?"
Footer:
* "Cancel" (secondary)
* "Move to sprint" (primary)
* This should apply to:
* Work package details page
* Work package table
* <br>
**Permissions and visibility considerations**
**Translation considerations**
* Consider using these existing strings to avoid duplicates:
* "Move to sprint": `backlogs.move_to_sprint_dialog_component.title`
* "Move to backlog": `label_agenda_item_move_to_backlog`
**Out of scope**
* <br>