Hi.
On CLOUD instance, using ScriptRunner post function Clone Issue and it works great.
Problem is that we need to clone only the issue without the attachments.
Anyone with knowledge of of how can this be done?
Thanks very much.
Mordechai
Hi Mordechai,
Thank you for your question.
I can confirm that you can skip attachments by taking the code shown here and adding into the additional actions box on the Clone an Issue post function within ScriptRunner for Jira Cloud.
The code line 9 if left uncommented will remove all attachments from the issue when it is cloned whereas the code on line 12 if uncommented will only remove a certain attachment when the issue is cloned.
If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.
Regards,
Kristian
Thank you Kristian for that exact and perfect answer!
Just ran it and sure enough the attachment was gone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mordechai,
Thank you for confirming that your requirement has been solved.
Regards,
Kristian
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.