...
The app will sum up the time in each of the statuses which are grouped together.
Jira Server / Data Center: Navigate to Settings → System page. You will find Time in Status Reports → Hierarchy Settings link on the left navigation bar,
Cloud: Navigate to Settings → Apps page. You will find Time in Status → Grouped Statuses link on the left navigation bar, as per screen shot below.
...