Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,459
Community Members
 
Community Events
184
Community Groups

How to counts the number of times a specific value is selected? (using JMWE)

Counts value.PNG

 

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 :)

 

1 answer

1 accepted

0 votes
Answer accepted
David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Hi @RIZKY JTUASIKAL 

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?

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 13, 2023

Hi @RIZKY JTUASIKAL 

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)

Like RIZKY JTUASIKAL likes this

Hi @David Fischer _Appfire_ ,

 

it works :)

thanks again for helping us, GBU

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events