Skip to content

In webhook from issue update, 'assignees' shows all the users that have ever been assigned #6235

@gijsriet

Description

@gijsriet

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The post data from a webhook, called when an issue is updated, shows a list of assignee updates instead of just the currently assigned user(s). When I switch between users a couple of times it gives me this for example:

{
    "event": "issue",
    "action": "updated",
    "webhook_id": "4af07fdc-12b2-4861-9c1b-0e585780045f",
    "workspace_id": "e18e76fd-8ebb-43f8-ba15-d54bb788f9ef",
    "data": {
        "id": "96f534cc-1f97-4ee8-8d42-2c5b3e619d1f",
        "labels": [
            {
                "id": "0a46daf7-8944-493e-82b7-b37b8a3908d4",
                "name": "2023",
                "color": "#ff0000"
            }
        ],
        "assignees": [
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "cc054819-8690-4e3a-ab47-7935eb9fb6f4",
                "first_name": "Danielle",
                "last_name": "van Zoete",
                "email": "Danielle@example.nl",
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocLsrSTf-gwRHZr-dgL9ME03PCm1bRCz8FSS5f82mTPDU5TXNQ=s96-c",
                "display_name": "Danielle"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            },
            {
                "id": "b8efb399-50f9-49f3-9add-3a47325f05e2",
                "first_name": "Gijs",
                "last_name": "Example",
                "email": "gijs@example.nl",
                "avatar": "",
                "avatar_url": null,
                "display_name": "gijs"
            }
        ],
        "state": {
            "id": "4cf15b53-e75a-4171-bdb8-81e12ac20bf2",
            "name": "Goedgekeurd",
            "color": "#f59e0b",
            "group": "started"
        },
        "created_at": "2024-12-19T12:54:39.857651Z",
        "updated_at": "2024-12-19T15:31:32.602996Z",
        "deleted_at": null,
        "point": null,


        ....

In the above scenario, currently one user is assigned to the issue. Is this intended bahaviour?

Steps to reproduce

  1. Create a webhook for issues
  2. change the assignees a couple of times
  3. See the post data from the webhook
    postdata.txt

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v0.17.1

Metadata

Metadata

Labels

🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions