Currently, when we are done with an Epic issue, we want to mark both the Issue itself and the instance in our backlog as "Done". I'm in charge of automating this, where marking the Issue page as "Done" automatically removes it from the backlog.
We have a few scripts, in Python, running off webhooks on another server. I was planning on setting up another webhook in the Epic's workflow transitions, but after looking around in the Jira-Python API documentation, I couldn't find anything that could manipulate the backlog. Is there another way to automate this process?
The Issue Workflow likely has a "Closed" status, something like that. Marking a Epic as "Done" on the backlog is done by setting the field Epic Status to "Done".
You just need to make sure that you update the Epic Status customfield to DONE when moving to CLOSED and that you move it back to TO DO when you reopen the ticket.