Closed klavdijS closed 7 months ago
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
Hi, Did you try out the callout mentioned here : https://docs.sentry.io/product/integrations/notification-incidents/msteams/#alert-rules
If Microsoft Teams is not appearing as an option in issue alert actions, re-install the integration using "Add to team".
We are having this issue too, even after selecting "Add to team". The integration appears in the list of integrations but never appears inside the Alerts options. We also never receive the welcome option. We have removed the app and re-added multiple times to test.
Hi, Did you try out the callout mentioned here : https://docs.sentry.io/product/integrations/notification-incidents/msteams/#alert-rules
If Microsoft Teams is not appearing as an option in issue alert actions, re-install the integration using "Add to team".
Yes, we have tried this multiple times. Always no successful result.
We'll have the team investigate.
Same problem:
We are unable to connect sentry and teams to send out alerts into teams channel. We tried several times to uninstall and install again using "add to team".
Then reached out to Sentry Support and got the following answer: "[...] MS Teams Tenants are not yet supported for Issue Alerts [...]". Including a link to this issue.
Is this a bug or a missing of feature?
@neffsvg we have had the integration set up for a different tenant for years without issue and it continues to work for that tenant. It seems like there's an issue with the initial set up for a tenant that we're experiencing in this thread. Placing my faith in @leedongwei 🙏
@ykamo001 @leedongwei Another potentially related issue here: https://github.com/getsentry/sentry/issues/66678
There is currently a limitation on tenant
installation types for integrations, which affects Microsoft Teams. We are looking into this limitation to get more answers, thank you for the patience!
I am also struggling with same issue in teams, I have installed the app, but I want it on my teams channel which is private, so will it not allow for that?
I am also struggling with same issue in teams,
I have installed the app, but I want it on my teams channel which is private, so will it not allow for that?
We're currently waiting for the sentry team to test the fix. They've merged one in recently here https://github.com/getsentry/sentry/pull/67196#issuecomment-2005123315.
Our team is currently unable to get production alerts into Teams. We're toying with webhooks or piping Sentry alerts into Jira and getting Jira to notify us - hoping we don't have to do that!
@ykamo001 is actively working on fixing this problem, we will share more updates here as we know more, Sorry for the inconvenience 🙏
Hey everyone, thank you everyone for your patience on this issue. I was able to fix the problem, and everyone should be able to install the bot into teams, even if you have a tenant/personal installation. Once you add the bot to the channel or team of your choice, you will then be able to use the bot in issue alerts!
I am attaching two videos on the steps as an example, as I just added the bot to my own MSTeams. Please see next comments for videos
Steps if you have already unsuccessfully tried installing the bot to a channel or team:
Manage Apps
(at the bottom left hand side)
Sentry
appSteps to add a bot to a team or channel if you have already installed it personally (Tenant):
Sentry
Sentry
app
Add to a team
Once you have successfully added the bot and finished the setup, you will be able to see the option to add Microsoft Teams for an action in Issue Alerts.
Awesome @ykamo001 ! I have successfully added this to our teams Teams team channel and verified it with a test alert. Will test it more on Monday. Thank you for getting this resolved!
@ykamo001 Thank you for the update!
I made it work, but only after "downgrading" to the legacy version of Teams. If In try from the MSTeams (New), the configuration message is never sent.
For me it still doesn't work. I created a new team inside Teams and used Teams New, Classic and the Web Version, but I never get the "Welcome" message. We already have an existing integration and could setup up the bot in two teams some years ago, but it doesn't work for new teams.
By the way I don't know it it's related, but when I do this and then want to write a post there is a "Sentry" comment already prewritten.
If I post it, it looks like this:
Same here @donaldpipowitch I removed all apps, integrations and bots, added the Sentry app to a specific channel in a team. Teams goes to the "General" channel, but no welcome message is received at all, so w'ere still stuck. The same for an app integrated via https://dev.teams.microsoft.com/bots
@ykamo001 Thank you for the update!
I made it work, but only after "downgrading" to the legacy version of Teams. If In try from the MSTeams (New), the configuration message is never sent.
I think I know what's happening here, let me quickly resolve this
@donaldpipowitch @xdemiansmithx I'm sorry about that experience, I think I know what's happening, let me quickly verify and push something out. I'll message here when it's deployed and you can try again
@iRod3s I was actually able to get the notification with the new version of MSteams, and with a private channel too. Could you send us what steps you're taking (text or video is fine)?
https://github.com/getsentry/sentry/assets/5581484/dbd276b4-f368-4cc0-9546-183c3983075b
@ykamo001 I don't know why, but today is working like a charm in both versions... When trying to fix it, I must have made some change in parallel to downgrading the Teams version, and that's why I attributed the resolution to that. Sorry for the false lead :(
Hi All, We're closing the issue for now. If you still face problems, please comment here and we will reopen the issue.
If you still face problems, please comment here and we will reopen the issue.
Still facing issues. I just tested it. @ykamo001 said he has an idea what could be wrong and that he would write when it's deployed.
I saw that a fix was mentioned in https://github.com/getsentry/sentry/issues/66678 and just tried it out. I now got a welcome message and I can complete the setup. Thanks!
I followed this fro mscratch: https://develop.sentry.dev/integrations/msteams/
@ykamo001
still no luck with "complete setup" after the app shows in "built for your org" -> "add to team". When using the "native" sentry app, I did get the "complete setup" but it links to sentry.io and there's no way of changing it to our self hosted instance...
I can see the api nstalled via graph api though:
That's awesome, thank you @donaldpipowitch! I was waiting for the deployment and then forgot to update here, but glad you are unblocked.
@xdemiansmithx I'll get you more answers for self-hosted
@xdemiansmithx I don't think you can use MSTeams App with self-hosted. You are downloading and using the production Sentry app from Microsoft Store, which points to production Sentry. The documentation should probably be updated, but that app is not supported for self-hosted, since it is configured to point to production out of the box, and there's no way to change the configuration of an app downloaded from the Microsoft store.
You might just be able to create your own internal integration app in Sentry, and then create a personal app in microsoft teams that points to the msteams webhook urls? But none of that is documented right now or officially supported.
Thanks for those insights @ykamo001 - I am slightly more confused now, we for sure used the "bot integration" in the past (up to some weeks ago). Only when the credentials expired, and we tried to replace them did we run into this issue (namely, the teams channel was not selectable in sentry anymore). With the developer integration document we're not suing the "Sentry" app from the Teams app store, but it is setting up your own bot, which also should trigger the "Complete setup" dialogue but sadly does not.
Thanks for those insights @ykamo001 - I am slightly more confused now, we for sure used the "bot integration" in the past (up to some weeks ago). Only when the credentials expired, and we tried to replace them did we run into this issue (namely, the teams channel was not selectable in sentry anymore). With the developer integration document we're not suing the "Sentry" app from the Teams app store, but it is setting up your own bot, which also should trigger the "Complete setup" dialogue but sadly does not.
Sorry for the late reply @xdemiansmithx , I think I understand what you're saying. You're not using the official app from the store, but your own integration pointed to your self hosted app. Did you update your self hosted with the changes I pushed recently (linked to this issue)? There were changes on the sentry server/repo side that were blocking/dropping/delaying event processing which was leading to the issue you described.
@ykamo001 no worries about the delay, I am highly appreciative of the provided support. I will talk to "the sentry" people to see whether the change was pushed and will revert back to you shortly.
Hey @xdemiansmithx, just checking in! Any other support or help needed?
Hej @ykamo001 thanks very much for the follow-up. We haven't been able to progress here due to our infrastructure, so please go ahead and "close" my question for the time being.
Thanks a lot for the support!
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
Expected Result
I expect the possibility to select the MSTeams action in the dropdown, like shown in the documentation: https://docs.sentry.io/product/integrations/notification-incidents/msteams/
Actual Result
Actual result:
Product Area
Settings - Integrations
Link
No response
DSN
No response
Version
No response