Background:
We have a restriction such that, if the test case is at New, Cancelled, Obsolete or Rejected state it can not be executed.
Issue:
The test cases at above mentioned state can still be added to test execution while creating /editing the test execution object.
We use script runner. Can we have a behaviour through which we can restrict users to add these non executable test cases to test execution while creation / edition.
These non executable test cases will not get added when added using 'Add Tests' option in test execution. We want same restriction at creation and edition operation of test execution.