---
title: "JSU epic-child validator blocks transition because of archived issues"
canonical: "https://support.appfire.com/space/SUPPORT/3837460640/JSU+epic-child+validator+blocks+transition+because+of+archived+issues"
format: markdown
---
## Summary

This article covers a scenario where the JSU validator (*Rule Builder – Validators*) prevents an epic from transitioning to a *Done* status, even when all visible child issues are in the required statuses. The validator considers archived child issues, which aren't visible in the Jira UI or standard JQL searches, and this leads to unexpected transition blocks.

## Problem

When you use the JSU validator to make sure all children of an epic are in a specific status (for example, *Done* or *Canceled*), the transition can be blocked with an error message such as:

> *All children must be marked with a status in the statuscategory of ‘Done’. (ie.. Done, Deployed, Closed, Canceled)*

This occurs even if:

- All visible child issues in the epic's child panel are already in the allowed statuses.
- The child panel shows *There are no work items here yet.*
- Standard JQL searches (for example, `parent = EPIC-KEY AND status NOT IN ("Done", "Canceled")`) return no results.

## Cause

The JSU validator evaluates all issues associated with the epic, including archived issues. Jira removes archived issues from the search index, so they don't appear in the UI or JQL results, but the underlying association remains. If an archived child issue is in a status that isn't included in the validator's **Allowed statuses**, the transition is blocked.

## Solution

JSU doesn't have an option to exclude archived issues, so use the following workaround to identify and update the hidden issues.

### Step 1: Identify archived child issues

Use the Jira REST API with a Jira expression to find all child issues, including archived ones.

To list child keys, summaries, and statuses, run:

```shell
curl -sS --request POST \
  --url 'https://<your-instance>.atlassian.net/rest/api/3/expression/evaluate' \
  --user '<email>:<api-token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "expression": "issue.childIssues.map(child => ({ key: child.key, summary: child.summary, status: child.status.name }))",
    "context": {
      "issue": {
        "key": "<EPIC-KEY>"
      }
    }
  }' | jq -r '.value[] | [.key, .summary, .status] | @tsv' | column -t -s "$(printf '\t')"
```

To get the total count of child issues, run:

```shell
curl --request POST \
  --url 'https://<your-instance>.atlassian.net/rest/api/3/expression/evaluate' \
  --user '<email>:<api-token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "expression": "issue.childIssues.length",
    "context": {
      "issue": {
        "key": "<EPIC-KEY>"
      }
    }
  }'
```

### Step 2: Resolve the block

After you identify the archived issues:

1. Temporarily unarchive the affected child issues.
2. Update the status of these issues to one of the **Allowed statuses** configured in your JSU validator.
3. Re-archive the issues if necessary.
4. Transition the epic to *Done*. The validator now allows the transition.

## Related information

- **Internal bug:** This behavior is a confirmed bug and is tracked internally.
- **Jira expressions API:** For more details on using expressions to find archived data, see the [Atlassian developer documentation for evaluating Jira expressions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-expression-evaluate-post).