•  
      request #42581 Artifact Section cannot have child
    Infos
    #42581
    Manuel Vacelet (vaceletm)
    2025-04-16 16:32
    2025-04-01 14:16
    44257
    Details
    Artifact Section cannot have child

    As of Tuleap 16.6, it's possible to create a Freetext Section as a child of an Artifact Section:

    1. Freetext Section
    1.1 Artifact Section
    1.1.1 Freetext Section
    

    This should not be available as we don't really know what it would mean. As for other Artidoc feature, it's easier to block by default and open according to feedbacks rather than letting it too open and having trouble to reverse the course of actions.

    The rules for section levels are as follows:

    1. Artifact sections must not have sub-sections of any type. Artifact section cannot have Free-text sub-section, and cannot have other Artifact sub-sections. Artifact sections are the "last" level.
    2. Free-text sections can be piled on 2 or 3 levels freely. Free-text sections of level 1 or 2 can either have Artifact sub-sections or other Free-text sub-sections. Free-text sections of level 3 are the "last" level, there is never any sub-section under level 3.

    Sub-section means a section with a lower level, for example a section of level 1 has sub-sections of level 2.

    In the following examples, we should show a warning near the sections because they are not allowed with the rules above:

    Artifact
    ⤷ Free-text ← warning here
    
    Artifact
    ⤷ Artifact ← warning here
    
    Artidoc
    16.6
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    Referencing request #42581

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2025-04-16 16:32
    • 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