•  
      request #12775 Workflow post actions are executed even on disabled workflow
    Infos
    #12775
    Joris MASSON (jmasson)
    2019-01-30 11:46
    2019-01-17 16:28
    13612
    Details
    Workflow post actions are executed even on disabled workflow

    As a tracker admin, given I had defined a workflow with transitions and post actions on those transitions
    and given the workflow is disabled (with warning "Transition rules don't apply yet")
    Then the post actions I defined will apply anyway.

    For example, when I switch from status "New" to status "On going", I have a post action that sets a float field named "Remaining effort" to 1. Even when the workflow is disabled, when I edit an artifact and switch its status from "New" to "On going", its field "Remaining effort" will be set to 1.

    They should not apply because the workflow is supposed to be disabled.

    We choose to do not break existing behaviour for the concerned workflow, so when workflow is disabled:

    • if it does not have any post action we migrate automatically workflow to new behviour (aka when workflow is disabled not transitions are applied)
    • if it has at least one post action transition, the workflo is nt migrated and keeps its old behaviour
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-01-22
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    • Original Submission
      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
    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2019-01-22