•  
     
    story #12188 hide fieldsets according to state
Summary
tracker admin
hide fieldsets according to state

I can simplify usage of artifacts by displaying only the relevant amount of informations at a given workflow state

Overview

This show/hide feature is a "soft" hiding of the fieldsets meant to present something simple. Advanced user would still have access to all the fieldsets with a "Show all" or progressive expand/collapse is they want to.

This story depends on story #12187 for new workflow configuration panel.

Functional overview

Tracker administrator point of view, configuration

By default, all fieldsets are displayed (current state) and there is a new section in the workflow transition configuration to select the fieldsets that are hidden.

It only applies on Fieldsets "containers" (it's not possible to hide a given field or a column for instance).

It's configured as a "Post Action", it means that the fieldset will be hidden after an artifact reach a given state.

In order to keep a clear UI and not make it confusing, this post-action can only be added once per state. After adding it once, when you try to add this type of post-action again, then the selectbox for post-action type will show a disabled option.

End user point of view, usage

On page load (either artifact view or Angular Modal) fieldsets that are hidden by configuration are not displayed.

There is a button in the interface "Show all fields" (or equivalent, like in "Chrome" configuration "Advanced mode") that shows all the fieldsets. The load shall not loose user work if she already started to work/modify the artifact.

It's not possible to switch back to "hide fields" once "Show all fields" has been clicked but next load of the artifact will hide fieldsets by default.

Edge cases:

  • Mandatory fields: a field might be mandatory, hidden and empty. In that case, the containing fieldset will be displayed regardless of the configuration made by tracker admin.
  • Field dependencies: when 2 fields are connected with a field dependency, both fields must be in a fieldset with the same status: either both are displayed or both as hidden. When at least one is displayed, the other one's fieldset is automatically displayed as well regardless of the configuration made by tracker admin.
  • Email notifications: emails are not impacted by this change and are sent with all values.

Technical overview

  • Hidden fieldsets are added in REST routes (esp. /artifacts/:id for modal)
  • Configuration must be exported/imported with tracker XML format
  • Configuration must be duplicated at tracker / project creation.

 

 

Empty
duffey maxime (duffeym), Jordan BACHELET (jordan_bachelet_jtekt)
Status
Done
Development
Empty
Empty
Details
#12188
Manuel Vacelet (vaceletm)
2019-06-28 11:53
2018-08-27 16:29
3469

References

List of items referenced by or referencing this item.

Git commit

Follow-ups

  • User avatar
    • Status changed from On going to Done
  • User avatar
    gerrit #15285 integrated into Tuleap 11.2.99.170
  • User avatar
    gerrit #15260 integrated into Tuleap 11.2.99.168
  • User avatar
    gerrit #15259 integrated into Tuleap 11.2.99.146
  • User avatar
    gerrit #15251 integrated into Tuleap 11.2.99.144
  • User avatar
    gerrit #15201 integrated into Tuleap 11.2.99.109
  • User avatar
    gerrit #15197 integrated into Tuleap 11.2.99.106
  • User avatar
    gerrit #15194 integrated into Tuleap 11.2.99.105
  • User avatar
    gerrit #15180 integrated into Tuleap 11.2.99.102.
  • User avatar
    gerrit #15165 integrated into Tuleap 11.2.99.94
  • User avatar
    gerrit #15164 integrated into Tuleap 11.2.99.81.
  • User avatar
    gerrit #15154 integrated into Tuleap 11.2.99.77
  • User avatar
    gerrit #15132 integrated into Tuleap 11.2.99.76
  • User avatar
    gerrit #15150 integrated into Tuleap 11.2.99.70
  • User avatar
    gerrit #15125 integrated into Tuleap 11.2.99.63
  • User avatar
    gerrit #15116 integrated into Tuleap 11.2.99.62
  • User avatar
    gerrit #15140 integrated into Tuleap 11.2.99.58
  • User avatar
    gerrit #15110 integrated into Tuleap 11.2.99.43
  • User avatar
    gerrit #15108 integrated into Tuleap 11.2.99.40
  • User avatar
    gerrit #15105 integrated into Tuleap 11.2.99.33
  • User avatar
    gerrit #15104 integrated into Tuleap 11.2.99.26.

    • Status changed from To be done to On going
  • User avatar
    gerrit #15099 integrated into Tuleap 11.2.99.23
  • User avatar
    gerrit #15100 integrated into Tuleap 11.2.99.22
  • User avatar
    gerrit #15082 integrated into Tuleap 11.2.99.15
  • User avatar
    gerrit #15081 integrated into Tuleap 11.2.99.8
  • User avatar
    gerrit #15077 integrated into Tuleap 11.2.99.6
  • User avatar
    gerrit #15031 integrated into Tuleap 11.1.99.141.
  • User avatar
    gerrit #15028 integrated into Tuleap 11.1.99.133
  • User avatar
    gerrit #15025 integrated into Tuleap 11.1.99.112.
  • User avatar
    gerrit #15023 integrated into Tuleap 11.1.99.110
  • User avatar
    gerrit #15019 integrated into Tuleap 11.1.99.109.
  • User avatar
    • Acceptance criteria
  • User avatar
    The new post-action can only be added once

    • Acceptance criteria
  • User avatar

    Update after team's review


    • Acceptance criteria
    • CC list set to Jordan BACHELET (jordan_bachelet_jtekt), duffey maxime (duffeym)
  • User avatar
    • Acceptance criteria
  • User avatar
    • I want to
      -Show/hide fieldsets according to state 
      +hide fieldsets according to state 
    • Acceptance criteria
  • User avatar
    • I want to
      -Show/hide fields according to state 
      +Show/hide fieldsets according to state 
    • Acceptance criteria
  • User avatar
    • So that
    • Acceptance criteria