Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83552

Add custom fields to Report builder

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_500_STABLE
    • Hide
      1. Log in as admin
      2. Go to Site administration > Reports > Report builder > Custom report fields
      3. Add a new category
      4. Add a new custom field
        1. type: Text area
        2. Name: Description
        3. shortname: descriptioncf
      5. Press Save changes
      6. Go to User menu > Reports
      7. Press "New report" button
        1. Name: My report
        2. Report source: Users
      8. Confirm there is a new section in the modal called "Other fields"
      9. Set the "Description" field to "This is my report description"
      10. Press "Save"
      11. Press "Edit details"
      12. Confirm that "Description" field has the value "This is my report description"
      Show
      Log in as admin Go to Site administration > Reports > Report builder > Custom report fields Add a new category Add a new custom field type: Text area Name: Description shortname: descriptioncf Press Save changes Go to User menu > Reports Press "New report" button Name: My report Report source: Users Confirm there is a new section in the modal called "Other fields" Set the "Description" field to "This is my report description" Press "Save" Press "Edit details" Confirm that "Description" field has the value "This is my report description"
    • Hide

      Code verified against automated checks.

      Checked MDL-83552 using repository: https://github.com/dravek/moodle

      More information about this report

      Built on: Mon Mar 10 07:26:32 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83552 using repository: https://github.com/dravek/moodle main (0 errors / 0 warnings) [branch: MDL-83552 | CI Job ] More information about this report Built on: Mon Mar 10 07:26:32 UTC 2025
    • Hide

      Launching automatic jobs for branch MDL-83552

      Built on: Fri Feb 28 15:29:31 UTC 2025

      Show
      Launching automatic jobs for branch MDL-83552 https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18389/ PHPUnit (sqlsrv / --testsuite core_reportbuilder_testsuite) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62987/ Behat (NonJS - boost and classic / --tags @core_reportbuilder) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62988/ Behat (Firefox - boost / --tags @core_reportbuilder) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62989/ Behat (Firefox - classic / --tags @core_reportbuilder) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/62990/ App tests (stable app version) / --tags @core_reportbuilder) Built on: Fri Feb 28 15:29:31 UTC 2025

      We should be able to use custom fields in Report builder custom reports. This would allow to add extra information to the report details (like for example a description) and allow for better classification in conjunction with tagging support from MDL-80245

      1. We should support filtering reports by CF content, just as we did for Cohorts in MDL-82529;
      2. CF content should be displayed to users when viewing a report

      This solves a couple of outstanding issues from Workplace:

      1. WP-2422 Report description field;
      2. WP-4907 Report archiving (can be achieved with either tags/CF plus filters)

      Custom fields configuration should be placed under Site configuration > Reports > Report builder section.

      Additional

      1. Once report duplication is supported (MDL-77270), then CF content should also be duplicated as part of report metadata;
      2. Make sure that test generators support creation of CF content;
      3. Ensure they are accounted for in external methods (receiving/returning as necessary)

            davidcarrillo David Carrillo
            davidcarrillo David Carrillo
            Paul Holden Paul Holden
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 6 minutes
                1d 4h 6m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.