Hi Team,
I want to register webhook for these events using Jira REST api v2.
1. project_created
2. project_updated
3. project_deleted
These events does not accept JQL. So When I removed the JQL part from request body it is not allowing me to register webhook for these events.
request payload I am trying and relative api url (/rest/api/2/webhook)
can someone pls help me to correct the payload structure or any document references which show how we can register webhook for these events.
Any help on this would be appreciated.
Regard,
Nishant
You should look into the official documentation for proper formatting. There are examples shown there. I believe it should come with a prefix "jira:"
Yep - that's right!!
'{
"webhooks": [
{
"events": [
"jira:project_created"
]
}
],
"url": "https://your-app.example.com/webhook-received"
}'
Thanks @Prince Nyeche
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pramodh M / @Prince Nyeche ,
I have tried your suggestion, but still it does not work. I have checked the documentation as well but seems to be "jira:issue_created" is kind of representation for only specific types of events. if you talk about "comment_created" event it works without prefix of "jira:" and same goes with "project_created" event.
I am getting below error for the above suggestion:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try providing the empty JQL with empty string and passing the body
'{
"webhooks": [
{
"jqlFilter": "",
"events": [
"project_created"
]
}
],
"url": "https://your-app.example.com/webhook-received"
}'
Let me know if it worked
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pramodh M
I have tried your suggestion
API Request:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.