Closed sushilgl closed 3 years ago
Did you add the bot to this channel?
Please take a look at teamcity-server.log
under Administration -> Diagnostics
Yes bot was added to the channel
I can see below log jetbrains.buildServer.SERVER - Slack Integration - missing_scope
Experienced same error
I've added a bunch of extra scopes (unable to say which scopes[s] in particular made it work - when I remove all scopes it continues to work...) and the missing_scope
stopped and I was able to save the configuration. However on pressing Try it
I get the following:
The TC build configuration has ran builds in past and previous successful/failed builds do exist.
Thank you mix4242, few more scopes were added and it worked for me.
@mix4242 it seems that you have another one issue which is fixed in #122
Anyway thanks for report and your participation!
Thanks for fixing the other issue so quickly @alexkvak!
Do we know what specific scopes were missing? @sushilgl could you share which ones you added? Would be good to update the README for future users :)
I am not sure on the exact scope but my scopes for the app are listed below. TeamCity Build Service is the name of my app. Authorizations On behalf of users, TeamCity Build Service can: View information about a user’s identity, granted by 1 team member View messages and other content in a user’s public channels, granted by 1 team member View people in a workspace, granted by 1 team member View email addresses of people in a workspace, granted by 1 team member Manage a user’s public channels and create new ones on a user’s behalf, granted by 1 team member Send messages on a user’s behalf, granted by 1 team member Manage a user’s private channels and create new ones on a user’s behalf, granted by 1 team member Start and manage calls in a workspace, granted by 1 team member View information about ongoing and past calls, granted by 1 team member On behalf of the app, TeamCity Build Service can: View basic information about public channels in a workspace Send messages as @teamcity_build_servic Send messages to channels @teamcity_build_servic isn't a member of Start direct messages with people View people in a workspace View email addresses of people in a workspace Send messages as @teamcity_build_servic with a customized username and avatar View information about ongoing and past calls Start and manage calls in a workspace View messages and other content in public channels that TeamCity Build Service has been added to Join public channels in a workspace Set presence for TeamCity Build Service View messages that directly mention @teamcity_build_servic in conversations that the app is in Manage public channels that TeamCity Build Service has been added to and create new ones View files shared in channels and conversations that TeamCity Build Service has been added to Upload, edit, and delete files as TeamCity Build Service Add, remove, or mark reminders as complete View the name, email domain, and icon for workspaces TeamCity Build Service is connected to Add shortcuts and/or slash commands that people can use View Do Not Disturb settings for people in a workspace View custom emoji in a workspace View messages and other content in private channels that TeamCity Build Service has been added to View basic information about private channels that TeamCity Build Service has been added to Manage private channels that TeamCity Build Service has been added to and create new ones View messages and other content in direct messages that TeamCity Build Service has been added to View basic information about direct messages that TeamCity Build Service has been added to Post messages to specific channels in Slack Add steps that people can use in Workflow Builder Post messages to private group
Had the same issue, after digging into the code, call that failing is using this API https://api.slack.com/methods/conversations.list. According to the doc required scopes are:
after adding those everything worked
@groaks thanks for the investigation! Added missing scopes to README
Followed all the instructions, while configuring channel I get below error
teamcitybuild is new channel added for the notification.
Are any additional steps required for configuration?
Environment: TeamCity Professional 2019.2.2 (build 71923) teamcity-slack v2.0.1