•  
     
    story #14096 have a post action to add "Scrum Top Backlog" flag
Summary
Empty
have a post action to add "Scrum Top Backlog" flag

I can automate stuff such as in the Kanban, having a maturation of my stories until a given state that then moves to Scrum Backlog

Functional Overview

It's two new post actions that are available either in Simple of Advanced mode.

The goal is to set up a Kanban like "Backlog" -> "Under discussion" -> "Ready" -> "On going" -> "Delivered" but to have the story the pops up in the Scrum backlog only when the status "Ready" is reached.

Behavior of the "add to backlog" post-action:

  • It can only be set on artifacts that can be in Backlog
    • When a tracker has this kind of post-action it cannot be removed from the "Backlog" configuration in Agile Dashboard.
    • The error/warning message on Agile Dashboard config must be explicit enough so project admin knows what they have to modify if they need to.
  • It works in "best-effort" mode, if the element cannot be added to the top backlog there is feedback to the user (in artifact view) to inform that the "add to top backlog" failed but the transition is made anyway.
    • For instance: if the artifact was already manually planned into a Milestone
    • To be defined: do we have the possibility to display this feedback in the kanban view?
  • If the element is already in top backlog (manually added) the post-action silently succeed

In addition, the behavior of adding a post-action is updated. There isn't a "random" action preselected anymore, the user has to choose the type of post action. And we cannot change the type of a post action after it is created, it must be deleted first. In short:

  • transform [Add action] button to a dropdown with all types
  • transform the type selectbox on a created action to a pane title

Technical overview

It's the first post-action provided by another plugin than Tracker.

Tracker workflow code must dispatch events to get multiple objects implementing interfaces. For instance: Transition_PostActionFactory will dispatch an event to get a new "SubFactory" that will handle the retrieval of the post action (GET REST route), the execution (Artifact new changeset) and the XML import.

We also need to dispatch events for the PUT post action REST route (to create / delete the new post actions).

For the XML import, we don't have an easy mechanism to let another plugin extend the RNG validation schema, so for this case the new post action validation schema will be in Tracker (not in Agiledashboard).

For the Vue app, we need a mechanism to import Vue components from a different plugin. Here we will need to import Vue components for the new post actions from AgileDashboard to Tracker plugin. Such a mechanism has been spiked.

Empty
Laurent CHARLES (lcharles)
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#14096
Manuel Vacelet (vaceletm)
2020-07-21 11:28
2019-10-31 09:57
3955

References
Referencing story #14096

Git commit

tuleap/tuleap/stable

Add datamodel and perform post action a9c1f446d3
Cannot unset tracker as backlog tracker if action is defined f31c30caa9
Remove unused deleteWorkflow code 48d27db260
Delete a workflow must delete all its AddToTopbacklog post actions 7699d6e3ea
Remove unused fetchPostActions code 93cd25d68a
Have a single entry point to add items in explicit top backlog 3dc9673938
Delete unused Transition_PostActionManager class 19de58f5e7
Delete a transition should delete the post action ed191beb89
Remove unused addPostAction method 7ea2fded7f
Inherit post action at tracker duplication fa57e245c1
remove Transition fetchPostActions unused code 0d15eaaa4c
Add feedback at artifact update 87f37f1211
Add SQL transactions on delete transitions 59567e2736
remove unused Condition::fetch methods aa2e649b0d
On switch from explicit to magical, remove post actions c707183bb5
Remove JS code of old WF admin 2330b58b7a
GET /tracker_workflow_transitions/{id}/action retrieves AddToTopBacklog bd7157e032
Convert existing administration.js script to typescript and mode it under its own namespace f63602e94b
Update PUT /tracker_workflow_transitions/{id}/action 5151b14de1
Add a modal in admin scrum section 7765711d93
XML import of AddToTopBacklog post action 2ccda91eee
Get post actions must not retieve AddToTopBacklog if project do not use the explicit backlog management a75ec2e97b
Introduce the new post action option "Add to backlog" in the post action modal dbd1a274d5
Convert IMPORT_XML_IS_PROJECT_VALID event as object 65971e5469
Revert "Introduce the new post action option "Add to backlog" in the post action modal" 6ddcf93f1d
Re-introduce the add to backlog post action option in the workflow transition modal a0d39df9c0
Deal with direct artifact link and explicit backlog 32192f63fa
Be able to use the new post action "Add to the top backlog" option via the UI bc4b29dbf3
Enhance project XML import error messages in pre-checks e309da4d17
Export AddToTopBacklog post action to XML aa88469c9d
Do not add AddToTopBacklog post action if tracker is not top backlog tracker 20e3e57087
Enhance the description displayed for the "Add to top backlog" post action 5c7c165315

Follow-ups

User avatar

Remove part is moved to art #14254


  • I want to
    -have a post action to add/remove "Scrum Top Backlog" flag 
    +have a post action to add "Scrum Top Backlog" flag 
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
Joris MASSON (jmasson)2019-11-05 10:43
Added technical notes from estimation.

  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
Thomas Gorka (tgorka)2019-11-04 13:15
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • So that
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes