Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

Use case

Return the percentage of the completed child issues under an Epic, Story or Task. For Epics, the percentage of completed Stories and Tasks will be returned while for Stories and Tasks, the percentage of completed Sub-tasks will be returned.

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) + '%' : ''


 

Feature

Field type

Smart text field

Parsing mode

Jira expression

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

Return the percentage of the completed child issues under an Epic or under a Story or Task.

Complexity