Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,225
Community Members
 
Community Events
184
Community Groups

Integration with Google Drive

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.

3 answers

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 25, 2023

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:

  1. Runs the JQL 
  2. Iterates over the result
    1. Downloads the attachments of the current issue
    2. Uploads those to Google Drive

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

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 25, 2023

Hi @Albert Hristov 

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.

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 25, 2023

But feel free to look on your own for apps that suit your needs.

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. 

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 25, 2023

@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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events