is there a way to count how many subtasks there are? especially using JMWE
example: when submitting from status A to B, it will calculate the specific existing subtasks
Hi @Rizky.Tuasikal
If you want to place a condition inside a post function, then you can write:
{{ issue | subtasks("key") | length }}
If you place it inside a workflow condition or validator then write:
issue.subtasks.length
Let me know if you got this working!
Actually, in Nunjucks (post-functions), you can use this:
{{ issue.fields.subtasks.length }}
which is faster / more efficient.
@David Fischer thanx for this suggestion!
Hi @Alex Koxaras -Relational- / @David Fischer ,
it works perfectly!
but, if you want to calculate the specific subtask/issue type (ex: Release PIR),
then how you do it?
Thanks in advance
It looks like you're new here. Sign in or register to get started.