Create a workflow command "clone and move to project"

Hi,

First question: is it possible to create a workflow that clones an issue and moves it to another project using commands?

And second question: is it possible to create a workflow that automatically copies comments from one issue to another issue that is in another project?

 

I saw how to create a command but I do not know how with a command with an argument with the list of projects.

 

Thank you

1 comment
Comment actions Permalink
Official comment

Hello Mario,

yes, it's possible, you need to create a copy of the original issue using copy() method: https://www.jetbrains.com/help/youtrack/incloud/v1-Issue.html#copy

Then apply a command to the newly created issue and move it to another project, then copy all the comments by iterating over comments of the original issue:

https://www.jetbrains.com/help/youtrack/incloud/v1-Issue.html#addComment

Let us know if you have any questions, please share your code in this case.

Thank you.

Please sign in to leave a comment.