I have created confluence access token using the below-mentioned link,https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/
As per Atlassian Webhook Docs mentioned belowhttps://developer.atlassian.com/cloud/confluence/modules/webhook/
Confluence supports webhooks but URL to create webhook is not mentioned properly in the documentation.Can you please help me with Url and parameters.
Hello @kuldeep kushwaha,
Confluence Cloud does have Webhooks, as you have already discovered. However, Confluence does not have a Webhook administration page as in Jira. We have the below feature request for this:
Webhooks can be registered through the descriptor file in Confluence Cloud as mentioned on this thread from our Developer Community, Are webhooks available to add-ons in Confluence Server.
In case you have any further questions about this, I advise you to raise a question on the Developer Community that I linked above. Be advised that the regular Atlassian Community is focused on end-users, so you're more likely to find the help you need from the Developer Community.
Regards,
Shannon
Hello @kuldeep kushwaha ,
Allow me to step in and try to summarize everything that has been said till now.
However, before going any further, I'd like to also try to make clear that this is not the best place to ask development related questions. The right resources are listed in https://developer.atlassian.com/resources:
Once this has been said:
I hope this clarifies.
Cheers,Dario
Hi,Can we create Confluence plugin using node js if so can you please provide me with the link.
And can Confluence plugins act as webhooks and provide me with the latest update.
Regards Kuldeep Kushwaha
Kuldeep,
Yes, you can! Here's the documentation below:
If you have any questions regarding this, please reach out to the Developer Community instead; they will be able to answer any questions for you related to developing for Atlassian products.
Hi,
I want to integrate confluence with our product webMethods.io Integration in the same was as slack is integrated with confluence.Any changes made in confluence is notified to me on our notification url can we achieve this through macro.
I asked the same query on the Atlassian community.https://community.atlassian.com/t5/Confluence-questions/Want-to-create-addon-integrate-webMethods-io-to-receive/qaq-p/1237238
The above link provided by you explains how to create macros but can I achieve instant notification updates by using macros.
Could you please help me with this.
RegardsKuldeep Kushwaha
HI @Dario B @Shannon S Using the app descriptor file I am able to register webhook in Confluence Cloud and able to receive the JSON data as soon as an event is performed in Confluence.But I noticed that the user who is within the administrator group was able to set webhook and other users were not.I searched for the same but didn't find anything on Confluence Documentation.So is there any restrictions with scopes regarding Webhook setup. If yes can you please provide me with the document link.
Kuldeep Kushwaha
Hello @webmethods-integration ,
It is pretty normal that only admin can create webhooks and this is actually the same in Jira. Indeed, the page to create webhooks is in the Jira administration section (not accessible to non-admin users).
If it wouldn't be this way, a malicious user would be able to create webhooks to send sensitive/private data to remote resources.
Also, for the future, please try to avoid adding questions to threads that are already 7 months old. Create a new thread instead.
Have a nice weekend.
Hi @kuldeep kushwaha !
You can try to use Webhook Manager for Confluence Cloud. It provides an easy way to manage and administer Confluence webhooks.
Thanks.
Sincerely, Vadim [StiltSoft]
Hi All,
@Dario B just added a new workaround to the CONFCLOUD-36613 feature request that I am reposting below to make sure it gets extra visibility, hope this helps y'all out:
There is one security concern regarding webhooks created using the way explained below: even though they can only be created by admins, there are no other permissions checks. If a regular user creates a restricted page, admins won't be able to access it via Confluence UI/API, but they will be able to receive webhooks related to this page. The information of course is very limited, but they will be able to see a title of a page, for example. We fixed this for regular webhooks a couple of years ago, but here it's not possible since there is no user to check permissions against.
There exists a private API that can be used for this purpose. However, the endpoint discussed below is intended for internal use only. Therefore, it is not part of the official Confluence Cloud REST APIs, it is not supported and it can change without any notice.
Once this has been said: you can register, list or delete Webhooks in Confluence Cloud by using the internal REST API endpoint /wiki/rest/webhooks/1.0/webhook.
The endpoint works the same way as the /rest/webhooks/1.0/webhook endpoint documented for Jira Cloud in the Webhook documentation page, section: Registering a webhook using the Jira REST API (Other integrations)
To register a webhook using REST:
{ "name": "Webhook (test comment created)", "url": "https://www.example.com/webhooks", "events": [ "comment_created" ] }
For a complete list of events, etc, please refer to the Confluence Cloud Webhook documentation page.
To unregister (that is, delete) a webhook using REST:
Example:The following would delete the webhook with an ID of 70:
curl --user EmailAddress:ApiToken -X DELETE -H "Content-Type: application/json" https://your-domain.atlassian.net/wiki/rest/webhooks/1.0/webhook/70
To query a webhook using REST:
Example:
curl --user EmailAddress:ApiToken -X GET -H "Content-Type: application/json" https://your-domain.atlassian.net/rest/webhooks/1.0/webhook
Example: the following would get a webhook with an ID of 72
curl --user EmailAddress:ApiToken -X GET -H "Content-Type: application/json" https://your-domain.atlassian.net/rest/webhooks/1.0/webhook/72
It looks like you're new here. Sign in or register to get started.