Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to send message to chat in MS Teams directly instead of using a Team post?

Marcos Paulo Batista
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2023

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.

3 answers

7 votes
Patrick Schüßler _yasoon_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2023

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

0 votes
Move Work Forward
Atlassian Partner
March 20, 2023

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

0 votes
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2023

@Marcos Paulo Batista 

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events