Is it possible to use script runner to transition a parent issue based on the status of a subtask?
Right now I have this setup
My problem is this. The parent should automatically move to the "Rejected" Status whenever 1 or more of the sub-task are marked "Rejected" but this does not happen. At this point, the parent only follows the "Automatically transition the parent" based on the last sub-task transitioned. The only thing I can do is prevent the parent from moving to the "Approved" status with a transition with a condition but I cannot force the parent to transition to the "Rejected" status
Any help would be appreciated.
Nevermind. I figured out how to do it. I needed to update my version of script runner
Hey @Phillip Campbell, do you think you can share what your resolution was so that others can do the same?
What version of script runner, what built-in post-function. If not built-in, can you share your groovy code?
Thanks
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.
I'd really like to see exactly how this is done also
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure.
I created a workflow on the subtask that fast track the parent's transition.
When a subtask is rejected, the parent gets the "Not approved" transition fast tracked immediately.
When a subtask is approved, the parent gets the "Approved" transition fast tracked but only when the condition of "All subtask are set to approved" is met. This way, until all items are approved, the transition will never happen.
I had to update my script runner version to get this working (3.0.16)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.