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

[BUG] Can't create issue with watchers via API call #138

Open
protoroto opened this issue Aug 22, 2023 · 0 comments
Open

[BUG] Can't create issue with watchers via API call #138

protoroto opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@protoroto
Copy link

Describe the bug

I can't create an issue via API call including watchers. The issue is getting created, but no watchers are there.

How can we reproduce the behavior

Following the documentation here https://docs.taiga.io/api.html#issues-create , just add some user id inside watchers. Issue will be created, but no watchers are present

Screenshots

This is what I see if I make a POST via curl

curl -X POST \
> -H "Content-Type: application/json" \
> -H "Authorization: Bearer <my token>" \
> -d '{
>         "assigned_to": null,
>         "description": "Implement API CALL",
>         "is_blocked": false,
>         "is_closed": false,
>         "milestone": null,
>         "priority": 369,
>         "project": 130,
>         "severity": 489,
>         "status": 1031,
>         "subject": "Customer personal data",
>         "type": 499,
>         "watchers": [7,88]
>     }' \
> -s <my taiga url>/api/v1/issues
{"tags": [], "due_date": null, "due_date_reason": "", "due_date_status": "not_set", "attachments": [], "project": 130, "project_extra_info": {"name": "Board di test", "slug": "board-di-test", "logo_small_url": "<my taiga url>/media/project/b/f/b/7/c459cae3fe51aca6f1084f2c18e1b50935b06eea5e26274c5de20127f482/taiga-logo.jpg.80x80_q85_crop.jpg?token=ZOSw3Q%3ALgWCYGiGhEbeVupxK6gZJVXcu92QXEkYGYstLQFPXbnBNEp3WAsFVDkrGjFgcFoXy9kqe8z0qHMeujr1mfyS1Q", "id": 130}, "status": 1031, "status_extra_info": {"name": "Incoming", "color": "#ef2929", "is_closed": false}, "assigned_to": null, "assigned_to_extra_info": null, "owner": 22, "owner_extra_info": {"username": "taiga", "full_name_display": "taiga", "photo": "<my taiga url>/media/user/1/a/a/f/8fcef908677e6f7d752e7b2576b9de542e739d21f5ed9e630a3a8334a295/nephila_spider_logo.png.80x80_q85_crop.jpg?token=ZOSw3Q%3AGAzy6tbGDk0pT6m69tBA_qfneOCadJF958rgmUtZA5rwaFO9G30DKhP6gdRn6oANaY0zLyLvAIbeFEsH4d9xRQ", "big_photo": "<my taiga url>/media/user/1/a/a/f/8fcef908677e6f7d752e7b2576b9de542e739d21f5ed9e630a3a8334a295/nephila_spider_logo.png.300x300_q85_crop.jpg?token=ZOSw3Q%3AYNQvpjtWkJHn_TfZOY7h2g-hMRjNeB0TycCVckzFVnndfBDUfTPcm0rtQ9AZXOMZHwrvDQCve5PJxjiVf3oiQQ", "gravatar_id": "3f362bdd00dbd0cefbd9b3c4febfb3da", "is_active": true, "id": 22}, "is_watcher": false, "total_watchers": 0, "is_voter": false, "total_voters": 0, "id": 12059, "ref": 16, "severity": 489, "priority": 369, "type": 499, "milestone": null, "created_date": "2023-08-22T12:58:05.179Z", "modified_date": "2023-08-22T12:58:05.190Z", "finished_date": null, "subject": "Customer personal data", "external_reference": null, "version": 1, "watchers": [], "is_blocked": false, "blocked_note": "", "is_closed": false, "comment": "", "generated_user_stories": null, "blocked_note_html": "", "description": "Implement API CALL", "description_html": "<p>Implement API CALL</p>"}

Taiga environment

Taiga environment is self hosted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant