You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Use case

Return the percentage of the completed issues under an epic.

Expression

Create and configure a Smart field using this expression in Jira expression mode:

let children = (issue.isEpic ? issue.stories : issue.subtasks);
children.length ? (children.filter(child => child.resolution).length / children.length * 100 + '').slice(0, 4) + '%' : ''