Hi everybody,
we have a "normal" workflow and a sub-task-workflow. I would like to create a sub-task automatically when a specific transition in the parent issue is performed. I´ve realized that with a script runner workflow function "create a subtask". So far, so good.
Now, I would like to set the automatically created sub-task in the second status (automatically, just in the moment when it is created). I´ve already tried several scripts to transition the sub-task and ordered it after the "create subtask" script in the transition, but it seems like the sub-task is not created before the transition is completed.
Any ideas, how to set the sub-task in the second status initially when it is created automatically.
Thank you in advance for your support.
Best regards
Dennis
Hi @Dennis S_,
Firstly, @Tom Lister is right. You can also follow some other ways to that. As far as I understand, when a specific transition performed you want to create subtask which will be created on the second status. If I get it correctly, you can ;
If you need help while coding script let me know. Hope this helps your problem. Good luck.
Best Regards,
Orkun Gedik
The second method is preferred.
Though @Dennis S_, could I ask why you want this automated functionality?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Orkun Gedik,
thank your for the prompt reply. Your suggested solution works perfectly!
@[deleted]: The automated functionality is required due to internal processes. The workflows (both of them) are very complex, so some automations are unavoidable.
Best regards
Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dennis S_
When issues are created they always start in the first status in your workflow.
You can use scriptrunner to then transition the subtask to the status you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How? example? This is exactly what I'm trying to figure out how to do, found this thread, and found this answer which confirmed I'm on the right path, but is entirely unhelpful.
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.