We're creating simple integration between two Jira instances (cloud and server) using Automation for Jira app:
When an issue created (updated) on Jira cloud it sends to Jira server webhook so we can create an issue, update issue fields on Jira server. But what about attachments? We can't figure out what to do with attachments. The REST API documentation says that webhooks does not contain the attachment itself but contains a URI that can be used to download the actual attached file.
Can we use this URI in "REST API "Add attachment POST /rest/api/2/issue/{issueIdOrKey}/attachments" to attach file in Jira server?
Curl example:
curl -D- -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" http://myhost/rest/api/2/issue/TEST-123/attachments
If it's impossible to implement via Automation for Jira app what we can use? Maybe script runner or power script?
I'm not aware of a method how you can implement this with Automation for Jira, but I'm also no expert there.
I wanted to mention other possible ways you could use to solve your problem:
Please note that I'm working for the team behind Backbone Issue Sync. If you have any specific questions in this regard, I'm also happy to help.
Cheers,
Matthias.
Hi @Matthias Gaiser _K15t_,
Thank you for your answer. Does "issue sync app" have to be installed on both Jira instances?
Regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's the usual case for all issue sync apps.
Backbone has another option which has the concept of a remote license. You don't need to install an app on the other side, but you still need two licenses - one Atlassian marketplace license for the instance where it is installed, and in addition a remote license for the other Jira.
You can learn more about this scenario here.
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.