[api] issue state is an enum not an integer