Hi,
I want to copy attachments to linked issues. I went through the Atlassian API documentation and found this
I am fetching attachments from other issues and I can get the URL to the attachment but how do I pass this as a parameter to the above POST request?
If someone has used this earlier, kindly guide me with a sample script.
Thanks
Hi Akhil,
Thank you for the question.
To do this you will need to write your own custom script which gets the details of the attachment from the source issue and then calls the Add attachment API which is documented here to add each attachment to the required issue to copy it over.
Please note that we are unable to provide you with an exact script to achieve this requirement as our SLA does not cover custom coding but you can use the examples provided as a reference to create the script that you require, and we would advise asking a question on the Atlassian Community located here if you require assistance with coding the script.
I hope this information helps.
Kind regards,
Kate
I think I have opened the question in the Atlassian Community itself. This is the reply I got from the Scriptrunner Vendor and they suggested I should open the discussion in the link you mentioned which leads me to this page.
For your information, I have fetched the issues and the attachment URLs and I have looked into the Add Attachment script too but I am not sure how to pass the URL as the parameter.
Let me know if you can help me pass the URL as parameter. Thanks
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.