've been trying to create a tracker for my team, which involves pulling data from a jira-like website. Unfortunately, unlike jira, there isn't an easy add-on for pulling data directly to a google sheet. I've attempted to use =ImportHTML as a function, but have found that it does not work with sites with authentication requirements, even if you have the log in information.
So, my hypothetical work around is to download the page as an html file and upload it to a drive folder so that the script can pull the appropriate data to the gsheet. What I would LIKE to do is just paste the file into it's associated drive folder, so that the GScript will automatically read it and post it into a sheet within GSheets (so that even if the "code" is different between sheets, so long as they have the same name, then the data is pulled correctly).
I have no practical experience in coding unfortunately, and the code I've managed so far is only what I've been able to cobble together from a tutorial. It can read an html file from a drive, but doesn't automatically fill in the information on the sheet. It is also limited in that is draws from the specific code of a html drive file, but it would be much more ideal if it could draw the information from any file placed in a folder, as the specific file would change daily.
If I can elaborate more, please don't hesitate to ask. Thank you!
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/82cb4292-790c-4b98-bb32-9c4d9c001bd7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/ae94bddb-c72c-40c0-8d5d-db7cf276b26en%40googlegroups.com.
David - why not write an app script to import the csv file directly, not having to go through Jira?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/4bd7c15e-bf6b-4a4a-b917-d30f3f7c3853n%40googlegroups.com.
I recently wrote a script that pulls from Gmail and email that has a csv or zip file and logs it to a spreadsheet. Then you select the cell containing the desired csv and press a button and it opens it and writes it to a tab. The script differentiates between a zip and csv and opens and writes accordingly.
It would be easy to have it pull one at a time, each csv from a drive folder and write it to a spreadsheet.
But I totally get your point. Automated doesn't always make it easier.
Here's the spreadsheet if you're interested. It's view only. Make a copy to get editor rights.
Cheers
Keith
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3436e581-b924-43ae-bb76-dde4d3dfb321n%40googlegroups.com.