Forums

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

How to resolve missing_scope issue while integrating Jira Server and Slack together

Engineering Tooling
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 3, 2020

Problem with integration of Jira Server v7.12.1 with "Slack for Jira Server" plugin v2.0.6

Versions used : 


Our Slack instance is already integrated with a jira instance, and I'm trying to integrate our slack workspace with a second jira instance.

It seems doable but for this to work we need to configure a custom Slack application, and follow the documentation at https://confluence.atlassian.com/slack/using-jira-applications-with-slack-966662163.html#UsingJiraapplicationswithSlack-IusemultipleJiraServerinstancesormyinstancesarebehindafirewall.HowdoIconnectthemtoSlack?

While configuring this application, I noticed some issues not covered by the documentation : 

 I need to grant scopes, those ones :  

  • channels:read
  • channels:write
  • links:read
  • groups:read
  • groups:write
  • links:write
  • im:read
  • mpim:read
  • chat:write:bot

However, two issues :

  1. there are two categories of scopes when configuring a Slack app : bot and user. Which should I choose ? 
  2. the channels:write scope does not exist for the bot

For now I've granted the following scopes : 

  • to bot : channels:manage, channels:read, chat:write, groups:read, groups:write, im:read, links:read, links:write and mpim:read
  • to user : channels:read, groups:read, links:read, im:read: mpim:read

when trying to connect Jira to Slack from the https://<JIRA_HOST>/plugins/servlet/slack/configure page, I get an issue about wrong credentials, while the jira server log throws the following message : 

 /rest/slack/latest/connection [c.a.p.slack.util.ResponseMapper] Slack returned an unsuccessful response to users.info/UUSKXMPN3: missing_scope 

Where UUSKXMPN3 matches the application itself. 

What am I missing ? 

Thanks for you help 

1 answer

1 accepted

0 votes
Answer accepted
Robert Reiner _smartics_
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 4, 2020

We had the same issue. 

We overread on https://confluence.atlassian.com/slack/using-jira-applications-with-slack-966662163.html  to use the classic scopes.

To get started, first visit https://api.slack.com/apps?new_classic_app=1Make sure you create the App with classic scopes as Slack has released a new permission model that's not compatible with this App at this moment.

After that it worked.

Engineering Tooling
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 5, 2020

Thank you a lot ! I've indeed overread the documentation (but let's be honest, the documentation is also outdated, as we also have to configure a legacy bot) It helped. I still have another issue, but at least I get the integration almost working.

For now I'm stuck with "limited connection issues" showing in Jira, despite my jira instance is accessible. I'll see if someone else already had the same problem

Slack cannot connect to your Jira server - it may be behind a firewall.
You can still receive messages from Jira in Slack, but some functionality (such as slash command or Issue Preview) may not work.

Thanks again

~ Morgan Wattiez

Suggest an answer

Log in or Sign up to answer