@Gonchik Tsymzhitov - these articles seem to be for traffic related to users using Slack, rather than Slack integrations/bots accessing external servers behind firewalls.
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.
If you manually created a new app recently, it might have been created with Slack's new scopes. The Server apps for Jira, Confluence, and Bitbucket use classic scopes.
Hey @Luiz Silva Thanks for updating the documentation! I'm now connected in limited mode but don't have/can't see the option to set up notifications. When i click "connect your Slack account" I get "redirect_uri did not match any configured URIs. Passed URI:" I guess this is because my Jira is behind a firewall. So where I do set up the notifications in limited mode?
Our jira-slack integration suddenly stopped working and there was no changes to our JIRA DC environment that would break this. When i say stopped working i am referring to ability to preview an issue in a slack channel. The notification functions are still working fine and the integration is showing connected.
Has anyone experienced similar issue, and if so were you able to find a root cause?
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2020 edited
@Davor Fisher Try to check then if Jira Server bot is in the channel you post issue keys to. The plugin automatically invites the bot to a channel when it is linked to a Jira project, but it's possible to manually kick Jira Server bot out of the channel. It would be enough to block plugin from receiving new message webhooks and, therefore, providing an issue preview.
@Mykhailo Vlasov I have tried this as well; re adding the bot back to the channel and trying to preview an issue from JIRA. The notification works if i set it on project level to show issues created,updated, transition and if i run command /jira_server issuekey but just typing the issue key in the slack channel does not - see attached
I'm sorry that this is not working for you anymore.
Unfortunately, this issue is not easy to diagnose as there are multiple parts involved between when you send a Slack message and the integration responds with the corresponding unfurl. It's important to narrow down where the problem is.
I can think on a number of reasons by this weird sudden issue:
Something might have broken the app configuration in Slack. I'm not sure whether this your setup uses a custom manually-created app or the default app provided in Slack. Someone might have migrated the app for the new granular scopes API, which for now it shouldn't be done, or Slack itself might have corrupted setup on an internal migration. It's just a guess but in this case it would help if you re-create the app configuration in Slack from scratch.
Slash commands and events come from Slack in different ways. If you have a firewall, it might be allowing the former and blocking the latter. In this case, what might help is looking into the logs. You might want enable debugging for the integration as described in the documentation and then reproducing the issue to check if the instance actually gets the Slack event. Depending whether the Slack message event reaches Jira or not, it would help a lot to narrow down where the problem is.
Did you upgrade the integration any time near when it stopped working? You might want to try uninstalling the integration and manually installing a previous version.
Did you upgrade Jira around that time? If so, to which version?
We are using the default app provided in Slack; this is not a custom app. On the slack side i believe i can only disable the app but cannot actually uninstall. I could try to this on the JIRA side with the JIRA Slack app. I have tried to disable/enable on JIRA end but no help there. I even went through the integration configuration section and made sure everything looks good.
I will look into logs further more but if i recall correctly we did look into this and we could not determine the root cause when the issue was first reported. I'll have to revisit this. Is there anything specific i should be looking at in the logs?
We upgraded JIRA to 8.5 on March 28th but had user confirmation that the app stopped working before the upgrade. As far as the slack app in the JIRA Marketplace we are on the latest version 2.0.7 and that version came out on March 25th so i am assuming that app was updated on 25h or before 28th.
@Luiz Silva Looking at the logs from today while making the call from Slack these were posted in atlassian-jira.log
2020-04-28 14:08:55,165 http-nio-8080-exec-1407 url:/slack/issuepanel/data/MHESPTI-130 username:davor_fisher url:/rest/slack/1.0...l/data/MHESPTI-130 username:davor_fisher DEBUG davor_fisher 848x2281475x2 lrl4xh 192.243.80.182,10.228.4.253 /slack/issuepanel/data/MHESPTI-130 [c.a.j.p.s.storage.json.JsonPropertyStoreStorageStrategy] Getting entity of type 'interface com.atlassian.jira.plugins.slack.model.DedicatedChannel' for issueId=511600 with key=slack.issue.dedicated.channel: None
2020-04-28 14:08:55,394 http-nio-8080-exec-1615 url:/slack/issue-me...ESPTI-130/channels username:davor_fisher url:/rest/slack/1.0...ESPTI-130/channels username:davor_fisher DEBUG davor_fisher 848x2281481x2 lrl4xh 192.243.80.182,10.228.4.253 /slack/issue-mentions/MHESPTI-130/channels [c.a.j.p.s.storage.json.JsonPropertyStoreStorageStrategy] Getting all enities of type 'class com.atlassian.jira.plugins.slack.model.mentions.IssueMention' for issueId=511600: {}
2020-04-28 14:08:55,394 http-nio-8080-exec-1615 url:/slack/issue-me...ESPTI-130/channels username:davor_fisher url:/rest/slack/1.0...ESPTI-130/channels username:davor_fisher DEBUG davor_fisher 848x2281481x2 lrl4xh 192.243.80.182,10.228.4.253 /slack/issue-mentions/MHESPTI-130/channels [c.a.j.p.s.storage.json.JsonPropertyStoreStorageStrategy] No entity of type 'class com.atlassian.jira.plugins.slack.model.mentions.IssueMention' found for issueId=511600
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2020 edited
@Davor Fisher These log lines are all for rendering the issue view panel where mentions to the issue are displayed. If that's all there is, I'd say the request is not reaching your instance and you should look either on an misconfiguration or bug in the Slack side or something network-related.
As this is an open thread and I'd like to avoid filling up dozens of people's inboxes with specifics on this case, I'd suggest moving this to a more specialized channel, i.e., another question or maybe use a support ticket if you need further assistance. I appreciate if you can understand that.
@Luiz Silva I have a question on the documentation provided. Forgive the lengthy explanatory & visual tutorial.
I am following the section about how to set up "multiple JIRA Server instances". It took me several attempts to figure out what was going wrong but I created the app as directed with legacy / classic scopes, got it approved by our Slack admin, but then something goes wrong after the last step in the document where it is written:
"In the Jira config screen, click the "Connect to a new Team" menu item. Then click on "advanced" for connection type. You'll need to copy each of the settings from your Slack app configuration into this screen. Once completed, you'll be able to start using your Jira Server integration."
This is actually only step 1 of 2 to complete the integration, and I have an issue at step 2. I am able to type in all the info like the Client ID and then successfully connect to the Slack workspace. My issue is with step #2, as you can hopefully see in this image where it says "Connect your Slack account":
When I select "Connect your Slack account" it comes up with a screen indicating to me that it is going to CHANGE THE SCOPES that I dutifully created the first time as directed to do earlier in the instructions for all the classic scopes that must be used. You can see that here:
When I look in Slack it tells me it wants to change the scopes to this specifically:
Compared to these scopes which following the documentation to the letter actually created:
Something in how the scopes change is causing our site admin to reject the app when it gets resubmitted because it grants itself additional privileges otherwise.
My question is why is there this second round of app approval with additional scopes. I sure didn't request the additional scopes, so it must be the Slack app in JIRA which puts the official "Slack" in the sidebar on JIRA which is altering my custom Slack API App's scopes. Why can't these scopes just be set up ahead of time and then when step #2 is needed to send notifications it just seamlessly works without having to resubmit the app for approval?
Maybe ours is a special case though since for security our administrators don't just let apps fly by without going through an approval/rejection process.
We (Atlassian) do not have control over your Slack App (we provide some sort of template for basic installations). Either a Slack admin on your workspace or Slack itself has performed such migration.
What you can do, depends on the following:
- If the integration was setup with advanced configuration, it means a Slack admin has manually created the Slack App at some point in the past. In this case, the Slack admin can go to the Slack App settings and check which scopes are selected there. - If the integration was setup with basic configuration, you should contact Slack to understand what happened because such Apps are controlled by Slack only.
AFAIK it’s not possible reverting the migration to GBP, so you should contact Slack about the possibility to maintain a legacy app that’s compatible with the Server Apps.
A possible workaround is creating a new legacy App from scratch as explained in our documentation.
We have also contacted Slack to understand if they are enforcing GBP migrations and will take actions according to their response.
We (Atlassian) do not have control over your Slack App (we provide some sort of template for basic installations). Either a Slack admin on your workspace or Slack itself has performed such migration.
What you can do, depends on the following:
- If the integration was setup with advanced configuration, it means a Slack admin has manually created the Slack App at some point in the past. In this case, the Slack admin can go to the Slack App settings (api.slack.com/apps) and check which scopes are selected there. - If the integration was setup with basic configuration, you should contact Slack to understand what happened because such Apps are controlled by Slack only.
AFAIK it’s not possible reverting the migration to GBP, so you should contact Slack about the possibility to maintain a legacy app that’s compatible with the Server Apps.
49 comments