Can some please explain how to, using Groovy in ScriptRunner for Jira Cloud, copy an attachment from a parent to child workitems i have created?
I found a response claiming HAPI's Issue would have a addAttachment() but the IDE doesn't recognize it nor is it in documentation.
Also, can attachment be copied without first storing as file somewhere?
(Sidenote: it's disturbing that most scripts found are for Server/DataCenter, not Cloud)
Hi @Sten W ,
probably you are looking a scriptrunner guide for JIRA Data Center (https://docs.adaptavist.com/sr4js/8.8.1/hapi/work-with-attachments ). Please take a look to the following guide for a Cloud instance https://docs.adaptavist.com/src/latest/scripting/code-snippets/working-with-attachments
Hope this helps,
Fabio
No, not looking FOR Data Center.
And your second link is about javascript which i can't see how i would somehow inject in Groovy code environment where my Groovy script runs under "ScriptRunner for Jira Cloud".
Perhaps this Atlassian forum only concerns the implementation of ScriptRunner inside Jira, not the use of it?
So while in Grovy i have addedChildIssue (a Issue), how can i add a copy of the attachment from it's parent (what triggered by ScriptRunner listener) to it?
I guess i'll try on adaptavist's support channels. Their pages is full of sales-pitches with little substance with Documentation sections full of "see how easy to do... simple stuff" but little more in-depth details.
I would like to have attachment-processing info on https://docs.adaptavist.com/sr4jc/latest/hapi/work-with-issues
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.