Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Progress on JIRA Kanban cards

Is there a way to show the % Progress on a Kanban board card? We have the Portfolio configuration in place where an issue has child issues, progress is calculated as follows:

Progress = Number of resolved child issues / Total number of child issues

1 answer

Hello Jessica,

I don't believe there is a way to do this out of the box, but it quite easy to achieve using scriptrunner.

You can simply add a scripted field and associate it with your board card. The script would be something like :

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.SubTaskManager

SubTaskManager subTaskManager = ComponentAccessor.getSubTaskManager();
Collection subTasks = issue.getSubTaskObjects();

def customFieldManager = ComponentAccessor.getCustomFieldManager();
def customField = customFieldManager.getCustomFieldObjectByName("<Custom Field Name>");
def sum = 0;
def total = 0;


for (currIssue in subTasks)
total++;
if (currIssue.getStatusObject().getName() == "<Closed or resolved status>")
sum ++;

return (sum/total)

 I did not test the code, but I started from a script I found here : https://community.atlassian.com/t5/Jira-questions/Scriptrunner-Scripted-field-to-sum-fields-of-child-tasks/qaq-p/879628

Let me know if you need further help!

Best regards,

JT 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

227 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you