Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cloning Issues

Don Reab May 29, 2018

I am using ScriptRunner to Clone issues from one project to another. The cloning works great by itself. However if,  at the end of the script,  I add an action to delete the issue after clone some of the attachments are missing from the cloned issue.

It seems to happen when there are a lot of large attachments, some are cloned with the issue others are missing. I'm guessing but could it be the 'delete' executes before the 'clone' is finished copying?

Is there are work around for this ?

Thanks, Don

 

1 answer

0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 29, 2018

workaround:

instead of deleting the issue, set an identifier field on the issue e,g "marked for Deletion=Y"and than bulk delete all issues which were marked by script runner.

Don Reab May 29, 2018

Thanks for the fast reply.. I sorta did something similar.  I created a new status and at the end of the script transitioned the cloned issue to that status. Then from another script, when an issue is transitioned to the new status delete it.    

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events