You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello, All,
We have a requirement to store files from certain issues on Google Drive. We can easily detect these issues with JQL and I think we can send these attachments via Automation Rule and sending a Web Request.
I am unsure what the body of that request should contain though.
Does anyone have experience with such a task and can give me some tips on how to achieve the upload of all files from JQL selected issues to Google Drive?
Thank you in advance.
I don't think that it can be done with Automation for Jira, because uploading large files to Google Drive would require a long-running "upload request" sent from AFJ to Google, which I think is not doable.
Solution if you can write code
You would need to write a script in Python or your favorite programming language that:
I'm quite sure you will find a Python client library for GDrive which should make it fairly easy.
Hi , One way you can do this as like ,
Export the Jql issue's to Excel sheet and save that Excel to your Google Drive .
when ever require, you can import those issues to the required project using inbuild Jira importing feauture.
i hope this may solve your issue . but automating this process is not possible i think.
Sorry for the wrong answer. i havent seen the word Attachments there.
for Attachments i dont know how we can do this . I'm following this request to know how we can do that.
Sorry again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JQL provides only a list of issues which meet certain criteria. I'm not sure that you can use it, as is, to upload anything anywhere. I would suggest that you use an app from the marketplace https://marketplace.atlassian.com/search?product=jira&query=google%20drive to connect your instance to your google drive. Especially this app, can sync your files as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But feel free to look on your own for apps that suit your needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The app does not really offer what we need. We are storing a lot of files in a lot of issues and we need an Automation to go through all files and all issues of certain type which we can easily distinct via JQL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Albert Hristov I've read your post twice, and yes I misunderstood what you wanted to achieve. So basically, you have in place your JQL and you have your issues which have all the attachments that you want to send to google drive. In order to upload them to google drive, for sure you have to look at this specific API.
For Jira I would use the:
GET /rest/api/3/attachment/content/{id}
from https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-content-id-get to get the attachment, but just to be honest, I haven't try it since there was no need.
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.