private suspend fun checkIssueStateCompatibility(issue: Issue, newState: IssueState)

Checks that the state of an issue can be changed to newState

Parameters

issue

the Issue to check compatibility with, must have a set template

newState

the new state of the issue

Throws

if the newState is not compatible with the template of the issue