Hi
So far in the REST API Docs I have found information about how to add an attachment from an actual file. However, I am more interested in creating an attachment from a link. (Link to a file/resource on e.g. sharePoint, oneDrive, etc.). I want to avoid a situation where I have to re-download a file only to upload it again.
I have not really found any useful information about whether this is possible or not, hence my question here.
Any help / info is welcome
Thanks
Hello @Pascal Kiechl
Welcome to the Atlassian Community!
It is possible to upload attachments from public links using the CSV external system importer, as described in the section "Importing Attachments" in the documentation below:
As mentioned there, URLs for attachments support the HTTP and HTTPS protocols and can be located anywhere that your Jira Cloud site can access (Public FTP server).
P.S: Google drive is not applicable to the scenario above, since it adds hashes to the file address that cannot be rendered by Jira application.
Let us know if you have any questions
Thanks for your response.
Is there any way to access this functionality remotely via API and without having to actually create the entire issue from the file?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Pascal Kiechl
I'm afraid Jira does not have a REST API to add attachments from links, however, you don't need to create the entire issue to apply the method suggested above.
As mentioned in this documentation, mapping the issue key in the CSV file of the existing issues you have on your site will cause the issues to be "updated" with the new attachments instead of creating a new issue. The best way to do this would be by following the steps below:
Let us know if this would be an option for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, the fundamental idea of what I'm trying to do is minimising manual steps, so I will have to keep looking for other options / workarounds.
Nonetheless, the fact that I can also "update" existing issues with attachments instead of having to create the entire issue through the CSV gives me a decent option to fall back to, in case I can't find a different solution.
Thanks a lot for your efforts,
cheers, Pascal
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.