creecros / MetaMagik

Custom Fields for Kanboard - Plugin MetaMagik
MIT License
98 stars 16 forks source link

fill fields when creating new Tasks via API Procedures #39

Closed eliaharm closed 5 years ago

eliaharm commented 5 years ago

Hello, Will it be possible to send values for custom fields when creating new tasks with the provided API procedures? thanks,

creecros commented 5 years ago

I believe so. Never tried, but I don't see why not. You'd have to use: https://docs.kanboard.org/en/latest/api/task_metadata_procedures.html

Let me know.

eliaharm commented 5 years ago

Just tried it and it didn't work. even the getTask didn't return the custom fields.

I just need to insert 2 additional field "request_issuer" and "for_department" when creating new tasks (incoming from our help desk) through the API. Is there a way I can add this option?

creecros commented 5 years ago

It's been awhile since I played with api, so I'll need to actually ... study. Yes is the answer.

I'll play around with it when I get a chance

creecros commented 5 years ago

Just tested, works just fine with all the task_metadata_procedures found here: https://docs.kanboard.org/en/latest/api/task_metadata_procedures.html

image

creecros commented 5 years ago

I'm gonna close this since the api procedures work. If you need help still, just let me know. Just keep In mind, meta data is a part of kanboard, so the api procedures also are a part of kanboard. MetaMagik just puts a pretty face on top of that existing functionality, and adds a few tools to go with it to make it easier to utilize as custom fields.

eliaharm commented 5 years ago

ok, thanks for the help.