Example: Sum "Time Spent" in all sub-tasks of issues linked with issue link types "LinkA", "LinkB", "LinkC"
I have this scenario:
In post-function "Save LoggedWord" I need to go throught all linked issues to current issue by link type names LinkA, LinkB, LinkC, etc. In each linked issue I need to go throught all of its sub-tasks and sum "Time Spent" on each. So I need all time spents from all sub-tasks from all linked issues. Is this feasible with the current version of Read fields from linked issues or sub-tasks postfunction?
You can do it using post-function Mathematical and date-time expression calculator with the following configuration:
Note that:
- {00025} is field code for virtual field "Total time spent"
- Target field "Sum of time spent" is a custom field to type Number that will store sum of time spent of sub-tasks of linked issues in minutes
Once configured, the transition will look like this:
Other examples of that function
- Automatic work log with start and stop work transitions
- Automatically log work time when the user uses a "Stop Progress" transition
- Calculate the time elapsed between 2 transition executions
- Getting the number of selected values in a custom field of type Multi Select
- Implement a form with a series of questions and calculate a numeric value based on the answers
- Increment a field or set to 1 if it's not set
- Set "Date-Time Picker" custom field with current date-time
- Set "Due date" 6 natural days (or work days) earlier than a "Date Picker" custom field
- Set "Due date" to a specific day of next week no matter of date of creation this week
- Set "Due date" with certain time offset from current date
- Set "Total time spent" to "Current date and time - date and time of last update"
- Set a custom field "Urgency" depending on a combined value of issue's priority and "Impact" custom field
- Sum "Time Spent" in all sub-tasks of issues linked with issue link types "LinkA", "LinkB", "LinkC"
- Triage Jira Service Desk email requests (Move issues)
- Using project properties to calculate custom sequence numbers
Related Usage Examples
Example: Sum "Time Spent" in all sub-tasks of issues linked with issue link types "LinkA", "LinkB", "LinkC"
I have this scenario:
In post-function "Save LoggedWord" I need to go throught all linked issues to current issue by link type names LinkA, LinkB, LinkC, etc. In each linked issue I need to go throught all of its sub-tasks and sum "Time Spent" on each. So I need all time spents from all sub-tasks from all linked issues. Is this feasible with the current version of Read fields from linked issues or sub-tasks postfunction?
You can do it using post-function Mathematical and date-time expression calculator with the following configuration:
Note that:
- {00025} is field code for virtual field "Total time spent"
- Target field "Sum of time spent" is a custom field to type Number that will store sum of time spent of sub-tasks of linked issues in minutes
Once configured, the transition will look like this:
Other examples of that function
- Automatic work log with start and stop work transitions
- Automatically log work time when the user uses a "Stop Progress" transition
- Calculate the time elapsed between 2 transition executions
- Getting the number of selected values in a custom field of type Multi Select
- Implement a form with a series of questions and calculate a numeric value based on the answers
- Increment a field or set to 1 if it's not set
- Set "Date-Time Picker" custom field with current date-time
- Set "Due date" 6 natural days (or work days) earlier than a "Date Picker" custom field
- Set "Due date" to a specific day of next week no matter of date of creation this week
- Set "Due date" with certain time offset from current date
- Set "Total time spent" to "Current date and time - date and time of last update"
- Set a custom field "Urgency" depending on a combined value of issue's priority and "Impact" custom field
- Sum "Time Spent" in all sub-tasks of issues linked with issue link types "LinkA", "LinkB", "LinkC"
- Triage Jira Service Desk email requests (Move issues)
- Using project properties to calculate custom sequence numbers