Joris MASSON (jmasson)2023-07-17 11:09 gerrit #29022 integrated in Tuleap 14.10.99.170 Connected artifacts Added Fixed in: rel #31540
Tracker Workflow Manager (forge__tracker_workflow_manager)2023-07-17 11:08 Closed by @tgerbet with git #tuleap/stable/244af447fa8e030bec021f8a0cb37f75e577c1b3. Status changed from Reopen to ClosedClose date set to 2023-07-17
Guilhem Bonnefille (CS) (gbonnefille)2023-07-07 18:01 On the anticipation part I'm not sure there is a real need. If you need to know what to expect before you loop over all the retrieved artifacts you can take a look at the values key of the first artifact of the set, for each value you have the type of field. I was not sure it is guaranteed that all fields are present, in the case of non valuated field. But you are right, if all fields are effectively always present, so the first result can also serve to identify the columns.
Thomas Gerbet (tgerbet)2023-07-07 17:42 But I'm not able to anticipate the list of columns I will obtain, nor the order defined by the Report author. Indeed the column rank is not respected by this endpoint, it probably should. On the anticipation part I'm not sure there is a real need. If you need to know what to expect before you loop over all the retrieved artifacts you can take a look at the values key of the first artifact of the set, for each value you have the type of field. Status changed from Closed to ReopenClose date cleared
Guilhem Bonnefille (CS) (gbonnefille)2023-07-07 17:21 Sorry, I fear my description of the problem was not clear or I did not understand your answer. When using the API, /tracker_reports/:report_id/artifacts?values=from_table_renderer I effectively obtain the filtered result I expect. But I'm not able to anticipate the list of columns I will obtain, nor the order defined by the Report author. I imagined I can request such information in the /tracker_reports/:report_id or /tracker_reports/:report_id/table_renderer.
Thomas Gerbet (tgerbet)2023-07-07 17:00 Hello, Closing as this is already supported. It is possible to call the REST API endpoint /tracker_reports/:report_id/artifacts?values=from_table_renderer (note that you cannot have multiple table renderer in that report). This how the document generation plugin works. You can see it in action in this tracker: go to the report, open the "Export" button, click on "Generate cross tracker documents" (feature was mainly planned to do cross tracker exports hence the name), do not selection anything for the second and third level and click export. Status changed from New to ClosedClose date set to 2023-07-07