plswiderski / asanaexporter Goto Github PK
View Code? Open in Web Editor NEWApplication for exporting your tasks from Asana.
License: MIT License
Application for exporting your tasks from Asana.
License: MIT License
Hi there!
Thanks for sharing your code.
I´ve tried run it but I´m facing some problems.
I have an Asana project called "Backlog - DEV" but I wasnt able to download it.
I´ve generated my personal token and run the following command line:
C:\Downloads>java -jar asanaexporter-all-1.1.0.jar <MY_TOKEN> "Backlog - DEV" WARN [main] (Main.java:89) - Could not load lastModification.txt. All tasks will be downloaded. ERROR [main] (Main.java:80) - Error occurred while running AsanaExporter. java.lang.RuntimeException: Could not find workspace with name Backlog - DEV at io.bitbucket.pablo127.asanaexporter.UserDownloadCommand.lambda$run$1(UserDownloadCommand.java:54) at java.base/java.util.Optional.orElseThrow(Optional.java:401) at io.bitbucket.pablo127.asanaexporter.UserDownloadCommand.run(UserDownloadCommand.java:54) at io.bitbucket.pablo127.asanaexporter.Main.<init>(Main.java:210) at io.bitbucket.pablo127.asanaexporter.Main.main(Main.java:60)
Could you help me?
Thanks.
$ java -jar ./build/libs/asanaexporter-all-1.0.0.jar '0/xxxxxxxxxxxxxxxxxxxxxxx'
INFO [main] (Main.java:45) - Start importing tasks.
INFO [main] (Main.java:50) - Imported 3581 tasks in 39 s.
INFO [main] (Main.java:53) - Start generate csv.
ERROR [main] (Main.java:57) - Error occurred while running AsanaExporter.
java.lang.RuntimeException: AssigneeId 7511111111111111 is not equal to user id!
at io.bitbucket.pablo127.asanaexporter.Main.getAssigneeName(Main.java:133)
at io.bitbucket.pablo127.asanaexporter.Main.generateCsv(Main.java:87)
at io.bitbucket.pablo127.asanaexporter.Main.main(Main.java:54)
(NB: I've changed the value of AssigneeId in the error message above)
Hi Pawel,
Thanks for building an awesome app.
When executing the app, I get the following error message: ERROR [main] (Main.java:80) - Error occurred while running AsanaExporter.
I've validated that the personal access token that I am using is valid with a curl request: curl https://app.asana.com/api/1.0/users/me \ -H "Authorization: Bearer 0/123456789abcdef"
This is the command that I am calling: java -jar /Applications/asanaexporter-all-1.1.0.jar $1/1234538506617382:abce2f60d9a4d0f6aa69a75ad3418ef2
Hello! Recently I was trying to export all the changes made to some Asana tasks. The official export option does not do that – even though all these modifications are recorded and displayed in the web interface. Because of that I first tried to achieve that with web scraping and after a bit of reconnaissance just wrote a tool that sifts through the WebSocket replies from the backend. You can take a look at it here.
Sadly, this method loses most of the formatting and details, introduces a bit of noise (due to a bug in Asana) and only works for just one task at a time. Would you happen to know if this could be done better using the official API?
ERROR [main] (Main.java:57) - Error occurred while running AsanaExporter.
java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "gid" (class io.bitbucket.pablo127.asanaexporter.model.user.UserData), not marked as ignorable (5 known properties: "photo", "id", "email", "workspaces", "name"])
Hello Pawel,
I'm facing this message:
ERROR [pool-1-thread-1] (Requester.java:71) - Unexpected error occurred: {"errors":[{"message":"workspace: Object cannot be null","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}
"workspace: Object cannot be null"
=> I couldn't identify any changes in their api regarding this.
Any idea?
Thanks!
Hi Pawel,
In september 2020 I have successfully used the AsanaExporter v1.1.0 tool to export all tasks in my projects to a CSV. Thank you for that!
Unfortunately, when I perform the same task now, there are only a minor part of the tasks (or even no tasks) stored in the CSV. My command prompt looks as follows:
Could you check if you have the same issue? Could it be that Asana changed their API?
Thanks a lot!
Luc
The stacktrace in the console.
java -jar asanaexporter-all-1.0.1.jar 0/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ERROR [main] (Main.java:57) - Error occurred while running AsanaExporter.
java.lang.NullPointerException
at io.bitbucket.pablo127.asanaexporter.Requester.request(Requester.java:49)
at io.bitbucket.pablo127.asanaexporter.UserDownloadCommand.run(UserDownloadCommand.java:24)
at io.bitbucket.pablo127.asanaexporter.Main.<init>(Main.java:153)
at io.bitbucket.pablo127.asanaexporter.Main.main(Main.java:43)
Hey @plswiderski
Thanks for this handy tool! 👍
It seems the executable hangs for quite a while after the tasks seemingly is finished.
See here the output
root@973ae5728a14:/app# java -jar /app/asanaexporter.jar "${API_KEY}" "${ORGANISATION}"
INFO [main] (UserDownloadCommand.java:55) - Downloaded userData.
INFO [main] (ProjectsDownloadCommand.java:35) - Downloaded 20 projects.
INFO [main] (Main.java:62) - Start importing tasks from last modification date 2024-03-10T10:39:52.391Z.
INFO [main] (Main.java:72) - Imported 0 tasks in 8 s.
INFO [main] (Main.java:75) - Start generate csv.
INFO [main] (Main.java:77) - Csv file is generated.
INFO [main] (Main.java:79) - Start writing last modification dateTime.
INFO [main] (Main.java:81) - Last modification dateTime is written.
Then it hangs for about three minutes.
Looking at the source code I suspect the main process is waiting for the threads to terminate:
Is this something that can be tuned a bit?
It's not really a dealbreaker, but perhaps something to improve upon :)
It would at least make testing faster
Thanks for the great work!
Best Regards,
Levi
First of all: Hello and thank you for your hard work.
However when using the command
java -jar asanaexporter-all-1.0.0.jar 0/082fd80a7b5003a08f94360e8f970391
I got this error:
INFO [main] (Main.java:45) - Start importing tasks.
INFO [main] (Main.java:50) - Imported 139 tasks in 3 s.
INFO [main] (Main.java:53) - Start generate csv.
ERROR [main] (Main.java:57) - Error occurred while running AsanaExporter.
java.lang.RuntimeException: AssigneeId 575833230594161 is not equal to user id!
at io.bitbucket.pablo127.asanaexporter.Main.getAssigneeName(Main.java:133)
at io.bitbucket.pablo127.asanaexporter.Main.generateCsv(Main.java:87)
at io.bitbucket.pablo127.asanaexporter.Main.main(Main.java:54)
The csv-file itself did not get created.
Any ideas? Thanks in advance.(:
Sorry for posting this here. I tried to contact you via your website, but the contact form just gave me an error.
I am downsizing my team, and will eventually transition away from Asana. However, most of the juicy bits I want to keep are in the conversation threads. Images, prices, hyperlinks, etc. I'm trying to figure out a way to keep all of that. Did you ever find a way to export more than just the name, date, and DRI of the tasks? I thought I would ask before reinventing the wheel.
Thanks!
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.