JIRA does not currently support the copying of comments or attachments when cloning issues (see https://jira.atlassian.com/browse/JRACLOUD-5052). However, this is a requirement for us in certain cases. I am therefore trying to implement a similar feature to copy attachments via sending HTTP requests from Automation for Jira.
I have been able to do this via postman with the following configuration:
Can I also, instead of selecting a file in the second screenshot via the explorer, provide the JIRA REST-API with a file URL? If that would work, I could use webhook request in Jira Automation...
Copying attachment from one instance to another or project to another is very possible via API. However using automation and webhook seems more like manual task would be involved rather than it being automated. i.e. how will the attachment url be extracted dynamically using automation and how would automation post the data back to another project or instance?
This is happening in the context of cloning an issue, so I would do it via the smart value {{attachment.filename}}.
You seem to have some other solution in mind for doing this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, once you get the url for the attachment that's one step, how do you post back a binary data to Jira? What I'm thinking here is that using a webhook service, you can send the request there (which includes, the instance url, issue key, attachment url) and the webhook service will extract the file (authentication is needed for proper extraction) as binary data then fire another request to Jira attachment endpoint with a POST request of the binary data. That way, you get a copy of the attachment on another issue key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was thinking along the same lines. But our IT Infrastructure doesn't match the requirements for hosting such a webhook service, since it would need to be accessible for the world via a DNS-Name/IP... For the moment, it seems I am stuck waiting for https://jira.atlassian.com/browse/JRACLOUD-5052... :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The alternative is to use an addon as suggested on one of the comment on this ticket JRACLOUD-5052
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.