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

REST API cannot create new checklist items #142

Open
frantzstaboeeg opened this issue Dec 30, 2020 · 1 comment
Open

REST API cannot create new checklist items #142

frantzstaboeeg opened this issue Dec 30, 2020 · 1 comment

Comments

@frantzstaboeeg
Copy link

I managed to use the REST API for a lot of different queries now, but there are some objects i cannot create.
How can i create new checklist items using the REST API?
It seems like I can only edit delete and get such items.

I tried with

POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items
with title in the data field but the response from the server can not be decoded to json and new items are not created, see below.
I guess it has not yet been implemented?

<title></title> <script type="text/javascript">__meteor_runtime_config__ = JSON.parse(decodeURIComponent("%7B%22meteorRelease%22%3A%22METEOR%401.12%22%2C%22gitCommitHash%22%3A%223590821e1af43034979f323ccabc7ef79dcb3666%22%2C%22meteorEnv%22%3A%7B%22NODE_ENV%22%3A%22production%22%2C%22TEST_METADATA%22%3A%22%7B%7D%22%7D%2C%22PUBLIC_SETTINGS%22%3A%7B%22CARD_OPENED_WEBHOOK_ENABLED%22%3Afalse%2C%22RICHER_CARD_COMMENT_EDITOR%22%3Afalse%7D%2C%22ROOT_URL%22%3A%22http%3A%2F%2F127.0.0.1%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22autoupdate%22%3A%7B%22versions%22%3A%7B%22web.browser%22%3A%7B%22version%22%3A%22c62cfd4203501305dcc49982722e289574b48834%22%2C%22versionRefreshable%22%3A%229a3beee491e38ccdb4e7af2b84dbddc158ca1847%22%2C%22versionNonRefreshable%22%3A%228da0b7fc5fbf6daa63d9451c53454263e5f1c19d%22%7D%7D%2C%22autoupdateVersion%22%3Anull%2C%22autoupdateVersionRefreshable%22%3Anull%2C%22autoupdateVersionCordova%22%3Anull%2C%22appId%22%3A%22dvyihgykyzec6y1dpg%22%7D%2C%22appId%22%3A%22dvyihgykyzec6y1dpg%22%2C%22accountsConfigCalled%22%3Atrue%2C%22isModern%22%3Atrue%7D"))</script> <script type="text/javascript" src="/a756848fa1631428c7c1dea0af04165d6f25c179.js?meteor_js_resource=true"></script>
@xet7
Copy link
Member

xet7 commented Dec 30, 2020

@frantzstaboeeg

It seems you are correct.

You can create checklists:
https://github.com/wekan/wekan/blob/master/models/checklists.js#L275

But not checklist items, because there is no code to it:
https://github.com/wekan/wekan/blob/master/models/checklistItems.js#L254

Please send pull request for adding checklist items. Info about creating pull request is here:
https://github.com/wekan/wekan/wiki/Emoji#how-you-could-add-another-plugin

Thanks!

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