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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
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.