You can track time through all sub-tasks grouped by your JQL.
Assume you have an issue and you want to calculate the time passed through sub-tasks according to the issue types (development, analysis, test).
You can add as many groups as you want to by giving a JQL (e.g. 'issueype = Development), then the custom field will calculate all of the time passed through sub-tasks grouped by the users. Clicking on the field will give user details. Here is a snapshot to demonstrate this:
To define the Sub-task Elapsed Time Calculator Custom Field
- Navigate to Jira Admin > Add-ons > Enhancer Plugin Menu > Custom Field Configuration and go to the Time tab.
- Click on the Add new Sub-task Elapsed Time Calculator custom field button.
- Click on theicon to edit the name of the field.
- Click the Add new Time Group button and a sub-dialog (similar to the Time Between Custom Field).
- Create a Name for the group.
- Select the origin and target events, they can be any status or an event like 'Resolution' and 'Reopening' regardless of status.
- A Calendar can be selected. Working calendars can be defined in Jira Admin > Add-ons > Enhancer Plugin Menu > Working Calendars menu item.
- The Occurrence can be set to display only the "First" or "Last" occurrence, or an aggregated result with a "Cumulative" option.
- Tick the Latest Origin checkbox if you want to calculate the duration from the latest origin status. For instance, assume you have a workflow of Open - In Progress - Resolved - Closed, and you want to calculate working duration from Open to Resolved.
If the issue's status has been set to Open - In Progress - Open - In Progress - Resolved (in this order) and you want to calculate time from the latest Open, you should enable the Latest Origin flag. Otherwise, it will calculate from the first Open status in issue history. - Type JQL to get aggregated results for the group.
- Configure the Time formatter display options (both for the issue main view and navigator view).
- Click on the Add New Time Between button.
- Repeat adding time groups for every group you want to see these separately (development tasks, analysis tasks, test tasks).