clone an issue with all sub tasks
Hi,
Usually, I create a swim lane with 4 or 5 subtasks related to issue. From the issues page if I select the feature with all subtasks and try to clone them all the subtasks are getting created as subtasks of the original swim lane. Is there a way to clone a swim lane with its subtasks as one set or any other way to copy them as a I set.
thanks,
VK
Usually, I create a swim lane with 4 or 5 subtasks related to issue. From the issues page if I select the feature with all subtasks and try to clone them all the subtasks are getting created as subtasks of the original swim lane. Is there a way to clone a swim lane with its subtasks as one set or any other way to copy them as a I set.
thanks,
VK
Please sign in to leave a comment.
Unfortunately, it's not possible at the moment. I guess it can be implemented in future as an additional option, like 'Clone Tree' or similar.
Thank you for your suggestion!
Hi! Has the situation changed? I'd also find cloning a template issue tree useful.
Hi!
No, it has not changed, I'm afraid. Here's the related feature request: https://youtrack.jetbrains.com/issue/JT-34291 So far, it's not gotten much attention (votes), though it's not the only factor, it still matters. Feel free to vote for it, as it increases its priority and subscribes you to the email notifications. To do so, sign in to Jetbrains Youtrack: https://take.ms/41YJh (screenshot)
I'm new to YouTrack and immediately ran into this issue as well.
I created a custom workflow implementation that does this. See https://youtrack.jetbrains.com/issue/JT-34291 for details. My implementation is recursive, so it'll clone a whole tree of subtasks, plus it'll add "(Clone)" to the summary of the top-level issue.
The only thing I didn't created as a "cloned" link (like you might have in JIRA). I haven't learned how to detect whether or not a certain link type exists or not, but if I did, I'd check to see if "Cloned" exists and if so, then add a link for the top-level parent.
Hi Trev, you can use `IssueLinkPrototype.findByName(name)` method as described here
Cool Anna Zhdan, thanks for the pointer. I tried using that, but kept getting an error and I'm not sure what I did wrong.
I created a link type called "Clone" with outward name = "cloned to" and inward name = "cloned from".
Then I added the following logic to my workflow:
Here's the full workflow I was trying in case that helps:
Trev could you please attach logs of this workflow rule? They can be found in the lower panel in workflow editing UI. Could you please also attach a screenshot of your Issue Links Settings page?
Anna Zhdan, ah, I didn't see the workflow console. That's useful. The message I got there is pretty clear:
I could attack the stack trace, but we probably don't need it, we already know exactly where that's happening.
Strange that it's not finding IssueLinkPrototype because the editor found that it was available via workflow. I'm still a little new to javascript, so maybe I'm missing an important piece of syntax that's not obvious.
Here's a screen shot of my Issue Link Types settings page:
Trev
I'm sorry I didn't notice it before: it should be
instead of
That did the trick, thanks! I had to make one other tweak, which was to refer to the clone link type in the look up and refer to the outgoing link name in the adding of the link. All works now, thanks!