The feature has linked stories and tasks "child of" link type. The children must be resolved (done/rejected status) before transitioning the feature to done/reject status.
Hello @Heidi Fernandez
Have you considered using the Linked Issues Condition instead? Then you don't have to write a script. But, in that case, the transition would not even be available if the "child of" linked issues are not in the appropriate status, and there would not be any explanation available to the user.
There is an answer on this 2021 post that partially addresses your question. The use case there is being applied to all linked issues.
Google Gemini provided this information:
Disclaimer: I don't have a data center environment with Scriptrunner where I can test this.
We tried it and it confused the users. Using condition, hides the status and they think there is a bug in the browser, etc. They would rather have a error message pop up to tell them what they need to do to do, to transition and why they cannot transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created this and it isn't quite right. What is missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.