•  
     
    story #10594 see in which folder an artifact is in tracker view
Summary
Empty
see in which folder an artifact is in tracker view

I know that an artifact is in a folder and in which folder

For projects that are using Artifact Folders

  • For all trackers but the Folder one, in the proposed columns, there is a custom one called "Folder"
    • This column can only be added once in a report
    • It behaves the same way than other columns (d'nd for placement, size, etc)
      • Note: unlike other "custom columns", the "Folder" one is not configurable. It only displays the parent folder as described below.
  • The folder column display the parent hierarchy of the folders an artifact belongs to.
    • Given Bug "A" is placed in Folder C, child of B
    • Then in folder column of bug tracker report, for line "A", I'll see "B > C" (B and C are clickable, names comes from the title semantic)
    • When an artifact is not in a folder the cell is empty

Technical overview

  • Display of "Folder 1 > Folder 2" is tight to artifact folder plugin, extract and make it generic would be behind the scope of this story (for instance we would have to deal with multiple parents, mix of permissions, lack of semantics and so on).
  • For the "Folder" column, an hook is there so Artifact Folder plugin can fill it with the right content
  • CSV export will render the id of the direct parent (not the whole hierarchy)

gerrit #9383 corresponds to the spike

Patricia Carrasco (pcar), Stephan Bill (stephanbill)
Status
Empty
Canceled
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
#10594
Manuel Vacelet (vaceletm)
2018-07-17 10:53
2017-08-23 17:29
4483

References
Referencing story #10594

Artifact Tracker v5

epic #9469 Folders
Referenced by story #10594

Follow-ups

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
Hi Manuel, we installed the patch and yes I confirm that now we can see the current folder that the artifact is in without its parent.
User avatar

After discussion with the team, option 1 might be simpler than initially expected.

@pcar, would you have the possibility to test the attached patch with one project (on dev or staging server only). After having applied the patch you should be able to go on a tracker report in a project using Artifact Folders and create a new Custom column for "Folder" nature with the relevant label (%title probably). Then you should have a in the report the folder an artifact belongs to (without its parents). Do you confirm that, except the parent thing, it works as expected ?


User avatar

Second option, "specific" column


  • 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

To address this point there are 2 possible strategies:

  • Either we go the generic way by allowing the use of '_in_folder' link type in "Custom columns based on…" section of a tracker report
  • Or we do something specific, a column named "Folder" that would display "Release 1 > Iteration 2" when sth is in "Iteration 2" folder, child of Release 1.

The initial proposal was to go the generic way but there are few things to take into account:

  1. Currently, "Custom columns based on ..." only works for Forward Links, reverse links are not taken into account.
  2. In current form, the customization on column to display sth meaningful instead of an id (eg %id %name) only gather infromation for the one artifact linked, not the whole hierarchy.

It's gonna be a lot more work than a specific column (proposal n°2), however those 2 items are relevant beside the scope of Artifact Folders usage. @pcar @stephanbill what do you think ?

 


  • 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
  • CC list set to Patricia Carrasco (pcar), Stephan Bill (stephanbill)
  • Permissions set to