At the company I work we have many issue types and every issue type has different states, but all of the issue types have final states (closed). I would like to know if there is an endpoint that I can use to check if a ticket is in a closed or open state.