Is it possible to send message to chat in MS Teams directly instead of using a Team post? I'm just able to create a webhook in Team Post area.
Hi @Marcos Paulo Batista
as @Oday Rafeh already mentioned, you can do this by using the Microsoft Graph API.
You can also do this with the Microsoft 365 for Jira app.
Here you have the possibility to start a chat or channel conversation within Jira:
Microsoft Teams: Start a chat in Jira (yasoon.com)
Microsoft Teams: Start a conversation in Jira (yasoon.com)
If you want to discuss your specific use case, feel free to book a demo with us.
Please note, I work for yasoon, so I am a fan of the app :-)
Have a great start to the new week and all the best,
Patrick
Hello @Marcos Paulo Batista
Thank you for asking.
It is possible to create a Microsoft Teams notification or report with Advanced Microsoft Teams Jira Connector. You can setup personal/space/global level notification rules that will help you stay on top of your work.
If you want to discuss this please schedule a call with us.
Regards,
Leo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the Microsoft Graph API to send messages directly to a chat instead.
To do this, you'll need to create a custom integration or bot that interacts with the Graph API.
Here's a high-level overview of the process:
Register an application:
To interact with the Microsoft Graph API, you'll need to register an application in the Azure portal. Follow the instructions provided in the Microsoft documentation:
Set up authentication:
You'll need to set up authentication for your application using either OAuth 2.0 client credentials flow or OAuth 2.0 authorization code flow.
This will allow your application to obtain access tokens for calling the Graph API. Detailed instructions can be found in the Microsoft documentation:
Use the Graph API:
Once you've set up authentication, you can use the Microsoft Graph API to send messages to a chat. To do this, you'll need to make a POST request to the following endpoint:
https: //graph. microsoft. com/v1.0/users/{userId}/chats/{chatId}/messages
Replace {userId} with the user's ID, and {chatId} with the chat ID where you want to send the message. The message content should be provided in the request body, formatted as JSON. For example:
{
"body": {
"contentType": "html",
"content": "Hello, this is a test message! "
}
}
Custom integration:
Develop and deploy your custom integration or bot to interact with the Graph API and send messages to chats in Microsoft Teams.
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.