You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
The example is like the picture above,
I have 5 subtasks, and I have a Rollback field with the value Yes or No.
The question is,
How do I calculate that there are 5 subtasks that have a value of YES for Rollback field?
When moving from status A to status B
Need help..
Thank you :)
During that transition from status A to B, are you trying to do that calculation in a post function or in a condition or validator? The solution is different because the scripting language is different (Nunjucks vs Jira Expressions)
Hi @David Fischer _Appfire_ ,
thanks for replying.
I will probably use the post function.
Can this be use by using Set Issue Field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, you can use a Set Issue Fields post function, and the Nunjucjs value you want should be something like:
{{issue | subtasks("customfield_12345") | filter(["fields.customfield_12345.value","Yes"]) | length }}
where you'll replace customfield_12345 with the custom field ID of the Rollback field (which you can find on the Issue Fields help tab)
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.