Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Attachments methods #3

Open
Typhonragewind opened this issue Feb 15, 2024 · 3 comments
Open

Missing Attachments methods #3

Typhonragewind opened this issue Feb 15, 2024 · 3 comments

Comments

@Typhonragewind
Copy link

Hi!

I wanted to use this to also add attachments to tasks when they are created (or updated) but there is no option in the added modules.

I have also tried doing it via a HTTP request module, but I keep getting authorization errors, no matter how i send the API credentials.

Is this something you're going to add eventually?

Thanks for all the work :)

@kolaente
Copy link
Member

The task attachments were previously not available through the api scopes (see go-vikunja/vikunja#112).

Now that's implemented, but it needs to be implemented in the n8n package.

I'd love a PR if you feel up to it.

Out of curiosity, how are you using n8n with Vikunja?

@Typhonragewind
Copy link
Author

Ohh, that explains why i couldn't get it to work via the HTTP request.

I never even looked at Typescript syntax, but i might give it a go as a learning experience.

I use n8n to transform a new row in Baserow (via a form) into a task in vikunja when someone fills it
I also plan on using it to move tasks to certain buckets when a tag is applied, and apply a tag when tasks are moved to specific bucket

@kolaente
Copy link
Member

It's actually pretty straight-forward. It should be enough to declare the attachment operations here, similar to how comments are declared: https://github.com/go-vikunja/n8n-vikunja-nodes/blob/master/nodes/Vikunja/properties/Task.ts#L17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants