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
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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.