The Jira plugin works OK when posting events to channel but hangs up while trying to create or attach to the issue.
Steps to reproduce
Mattermost Version: 5.13.1 with preinstalled Jira plugin
JIRA cloud instance
Configure plugin and Jira according to the guide
Expected behavior
Successful creation of issues.
Observed behavior
I’ve successfully configured the plugin to post events from Jira Cloud to Mattermost channel, but after installing it as an application I can’t configure it to create tasks in Jira.
When I enter /jira connect command and click on the link bot gives me link with the url https://<MM-URL>/plugins/jira/user/connect. I successfully connect my jira account and everything looks good. But when I want to create an issue from any message, ruight-click on it and select “create jira issue” I receive a pop-up window with endless “Loading…” message.
In the mattermost logs i see the following error:
{"level":"error","ts":1564400037.2892468,"caller":"mlog/sugar.go:23","msg":"ERROR: ","plugin_id":"jira","Status":"500","Error":"user not found","Host”:”<MM-URL>”,”RequestURI":"/plugins/jira/api/v2/get-create-issue-metadata","Method":"GET","query":""}
This helps, but can you actually help take a screenshot of the JavaScript console - you can find it by selecting the “Console” tab in the window you opened
Also, I’ve noticed that I have to connect to Jira everytime i open mattermost in a browser or quit and start the app. And after connecting account in the Jira interface, it says
Your Jira account is now connected with Mattermost
Mattermost account: <my-name> (@<my-username>)
Jira account: <my-name> () <---- no username here
Is this correct? A little bit suspicious that mattermost says "user not found" and my Jira username is empty.
@aaronrothschild I tried to /jira disconnect and got this message:
Could not complete the disconnection request. You do not currently have a Jira account linked to your Mattermost account.
then I tried to connect, got a pop-up window with Jira interface, pressed the Approve button and entered /jira disconnect again, but got the same message.
Can you run /jira commands after you have ‘connected’?
What version of Jira are you running against (Cloud, Server, Data Center) and how many projects do you have approximately?
Are you able to execute any jira commands or only having trouble with some?
Thanks,
Aaron
(As an aside, In jira 2.1 we added the command /jira info to more easily access troubleshooting info)
Would either of you be willing to provide a payload being sent to your Mattermost server from Jira causing this issue (with redacted info)? I can walk you through if you’re not sure how to do so.
You can send me a DM on the community server at https://community.mattermost.com if you would like, and we can go from there. My username on there is michael.kochell
I had this issue after changing my email on Jira which switched me off of my google login. Not really a fix but I resolved it by /jira uninstall and /jira install, then it asks for the login details again and asks for permissions.