@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp. * https://yona.io **@ @(issue: Issue, project: Project) @import utils.TemplateHelper._ @parentIssueId = @{ if(issue.parent == null) { issue.id } else { issue.parent.id } } @defining(Issue.findByParentIssueIdAndState(parentIssueId, State.DRAFT)) { draftChildIssues => @defining(Issue.findByParentIssueIdAndState(parentIssueId, State.OPEN)) { openChildIssues => @defining(Issue.findByParentIssueIdAndState(parentIssueId, State.CLOSED)) { closedChildIssues => @if(!openChildIssues.isEmpty || !closedChildIssues.isEmpty || (!draftChildIssues.isEmpty && issue.isDraft && issue.isAuthoredBy(UserApp.currentUser()))) {