Jira registration of webhook via REST API

Hello there,

I’ve looked through every similar topic here in the forums, and couldn’t really find anything that would help me.

I’ve built 3LO integration with my product, and trying to add webhooks via rest API. The first Hook is created successfully, how ever if I tried to create another hook for another user on the same App I get this message.

"webhookRegistrationResult": [
        {
            "errors": [
                "Only a single URL per app is allowed to be registered via REST API. Currently used URL: https://domain.com/api/webhooks/jira"

            ]
        }
    ]

and my request is:

POST https://api.atlassian.com/ex/jira/{cloud-Id}/rest/api/3/webhook
{
    "url": "https://domain.com/api/webhooks/jira",
    "webhooks": [
        {
            "jqlFilter": "status = Done or status != Done",
            "events": [
                "comment_created",
                "comment_updated",
                "jira:issue_created",
                "jira:issue_updated"

            ]
        }
    ]
}

I want to create a webhook for each user associated with my App to get any updates in issues or comments related to this user.

Hi @MalekMohamed,

Welcome to the Atlassian developer community!

I could find on this ticket (direct link to comment: [ACJIRA-2450] - Ecosystem Jira) that this behaviour is by design.

Wouldn’t it be possible to have one single webhook (instead of one per user) and, if the goal is to apply any additional logic or filtering based on the user, do that in the code processing the webhook in the app?

Thanks,
Caterina

1 Like