---
title: "Automatically remove a closed epic from the backlog"
canonical: "https://support.appfire.com/space/JSU/12682649/Automatically%20remove%20a%20closed%20epic%20from%20the%20backlog"
format: markdown
---
> Macro (aura-html)

> ℹ️ This content is for JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud [documentation](https://appfire.atlassian.net/wiki/spaces/JSUCLOUD/pages/12518672).

---

| **Goal** | Get a clear view of your team’s backlog |
| --- | --- |
| **Scenario** | *Do your epics stay in the backlog of your Jira agile board after closing them? Here's why.*<br>Besides the workflow status, epics have an additional field called *epic status *which is only accessible on the Backlog screen. Only epics with the Epic status field marked as [DONE] get removed from the backlog.<br>Let's have a look at how this can be automated using JSU |
| **Components** | - [Update Any Issue Field ](https://appfire.atlassian.net/wiki/spaces/JSU/pages/12682426)post function
- [Value Field](https://appfire.atlassian.net/l/cp/LPkTZgXx) precondition |


![Jira Backlog showing the Mark as Done confirmation window.](media://38ebd957-b90d-4c44-ad73-861b86530c75)

## How to configure this rule

1. Go to **Project Settings > Workflows** and click **Edit** for the required workflow.
2. Choose the transition where you want to perform your post function. In this case, we choose the transition to [DONE].
3. Select the *Post Functions* tab and click **Add post function.**
4. Select the *Update any Issue Field* (JSU) post function, then click **Add**.
5. Because we want this post function to perform only for epics, we will need to configure a precondition. Therefore, we set the precondition to be true at the beginning of the post function configuration.
6. In this transition, you want to have your epic status updated to [done].
  1. Select **Within same Issue** for the issue relation.
  2. Select *Epic Status* for the Issue Field.
    
7. Click **Add** at the bottom of the page.
8. Now it's time to create your precondition to prevent errors when the workflow is used for non-epic issues. Click **Add post function, **select *Precondition: Value Field (JSU) *then click **Add**.
9. Configure your precondition by choosing `Issue type = Epic` and make sure the comparison type is String. Click **Add**.
  
10. Publish your workflow.
11. Now, check what you have achieved with JSU. Your epic is currently visible on the backlog. Move your epic to [done] and go back to your backlog. Your epic no longer shows in the backlog.