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 > Manage Apps > Enhancer Plugin For Jira Menu > Custom Fields (JEP).
- Click on the button.
- Click on the Duration tab on the left-hand side of the dialogue.
- Select Sub-task Elapsed Time Calculator, then click Add custom field.
- Create a Name for the group.
- Give a Config Description to configuration.
- 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.
- Time formatter display options (both for the issue main view, navigator view, and board view) can be configured easily as below.
- The Use Separator allows you to define your own separator for the time formatter display. You can also choose to not have a separator.
- Click on the Save custom field button.
- You can add different configurations for one Sub-task Elapsed Time Calculator Custom Field by clicking "+" icon and add for every group you want to see these separately (development tasks, analysis tasks, test tasks).