Can not createCopy() on state done ?
Hello all,
I'd like to create a copy of a ticket when it becomes done to create a depending task. But the following code
product the following message when state becomes done
Is their any work around ?
Thank's in advance
Regards
Yann
I'd like to create a copy of a ticket when it becomes done to create a depending task. But the following code
rule needMarketingText when State.becomes({Done}) { var nIssue = createCopy(); }
product the following message when state becomes done
Workflow opale-textsFlow reports error: Transaction is already being flushed!
Is their any work around ?
Thank's in advance
Regards
Yann
Please sign in to leave a comment.
As workaround you can use the method loggedInUser.createNewIssue(project_name):
clone.zip (2.6KB)
Sorry for inconvenience.
@dmitry The applyCommand("clone") creates an issue with ??? as the issue number (i.e. SL-???). I'm trying to clone a newly issue when it's created and then move it to a different project.
Can you help me?
Hello Bjorgensen, we can suggest the following: wait until the next release build and then try to use the method copy() instead: https://www.jetbrains.com/help/youtrack/incloud/2017.1/Workflow-Language-Methods.html#copy
Give it a try and then let us know if that helps. Thank you.