...
On your Jira Cloud instance, navigate to your Project settings or Project settings->Apps for team-managed projects.
On the left menu, choose Issue Matrix Configuration.
On the Issue Matrices page, click the Add Matrix button.
From the list, choose the Sub-task Matrix type.
On the Add Matrix page, you can set configuration options to build the matrix panel you want to see in your issue.
Context > Linked Projects: Choose the projects where you want the matrix panel to appear. By default, the Issue Matrix configuration is linked to the current project only. If you add more than one project in the Projects to link field, you will create a multi-project configuration. The Issue Matrix configuration and panel will appear in all linked projects.
With multi-project issue matrices, changes to the Issue Matrix configuration in one of the projects will affect the rest of the projects.
Context > Issue Types: After specifying the linked projects, choose issue types for each of them in the Context > Issue Types section.
Keep in mind, that the different projects might be associated with different issue types. For that reason, for each project, you need to choose the issue types where you would like to show the Issue Matrix panel.Type: In the Sub-task Issue Types section, choose the types of sub-task issues the Issue Matrix panel will show.
You can also specify a Filter JQL query to additionally filter the data displayed in the matrix.Data > Columns: Configure the width and headers of the columns that the Issue Matrix will display. The columns correspond to custom fields from your Jira Cloud instance. The panel will visualize the values of the custom fields for each issue.
Data > Results: Choose Select the maximum number of issues that to be displayed in the Issue Matrix panel can show. By default, all available results are displayedand set the number of results per page.
Data > Categories (optional): Use JQL to set color categories for organizing your issues. Colored squares will appear on the left of issues that belong to a specific category. Note that each issue can only have one category.
Sort By: Set a default order for the data displayed in the matrix by choosing one or more fields in the Sort By section.
Save the configuration.
...