How tou count the number of specific subtask?
using JMWE
when submitting from status A to B, it will calculate the specific subtask.
Subtask A
Subtask B
I would type something along the following lines:
{% set subTasks = issue | subtasks("key") %}
{{subTasks | field ("fields.issuetype.name")| filter ("Sub-task") | length}}
You can rename the word "Sub-task" inside the filter ("Sub-task") with your own name of subtask
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi @Alex Koxaras -Relational- ,
sorry, one more question,
if there is one more condition, where the subtask status that is counted is only the Completed status,
then, how to achieve it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use this script:
{% set subTasks = issue | subtasks("key,status") %}
{{subTasks | filter (["fields.issuetype.name","Sub-task"]) | filter (["fields.status.name","Completed"]) | length}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.