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

Create a Percent Complete Off of Children Issues

I have seen different ScriptRunner scrips doing similar functions but unable to put all of the pieces together on this. I need to create a script that calculates the % of all "DONE" related issues that have a  "Child of" relationship to the parent issue. Any help would be greatly appreciated.

1 answer

1 accepted

0 votes
Answer accepted

I ended up using the "Calculated Number Field (by JWT) to complete this request. 

 

Sample expression:

(
(
count(filterByIssueType(filterByStatus(linkedIssues("parent of"), "approve,done"), "Audit")) +
count(filterByIssueType(filterByStatus(linkedIssues("parent of"), "to be released,production validation, done"), "Development, Export File Development")) +
count(filterByIssueType(filterByStatus(linkedIssues("parent of"), "done"), "Meeting, Requirements, Task, Sub-Task,Training"))
)
/
count(linkedIssues("parent of"))
)
*100

Hello, 

Where do you use this formula in Jira? Thanks

@Justine Comtat I ended up leveraging a Calculated Number Field post function that comes with the Jira Workflow Toolbox add on. I put that on an any status to any status transition in the workflow that I can execute from different workflows based on their transitions being executed. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events