-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JIRA integration 'Test Credentials' fails with 'Jira Request failed: searchJira - [object Object]' #1
Comments
Thank you very much for reporting! I'll check this tomorrow! |
I'm having trouble finding the source, but my guess would be that it has to do with the port. node-jira which I'm using specifies this with an extra parameter. |
Could you please check again? |
No luck. I don't think it's just a port problem, because I get the same problem when entering 'http://redradish_jira.localhost' and 'https://issues.redradishtech.com' in the Host field (I also tried scheme-less, 'redradish_jira.localhost'). It's not even attempting a HTTP query. I hope I rebuilt SP properly. I've appended my rebuild commands at the end [1]. It could just be the node-jira library you're using that is broken. See the comment on steves/node-jira#131. For instance, I saved the following as
and I get:
I have better luck with 'node-client':
[1] How I rebuilt:
|
Thank you very much for digging into it. May I ask which version of node you are using? Does it work when using the compiled version of the app? If not I will give switching to jira-client a go. If the API is similar to node-jira, than this shouldn't be too much trouble. |
I was using node 4.5.0. I've just upgraded to node 6.9.5 and tried again, with no difference:
It also failed with the Debian-packaged version, superProductivity_1.0.0_amd64.deb. Thanks for looking into it! |
It's weird that it also fails with the debian package. I switched from node-jira to a personal fork from jira-client (a fork because some things do not work, as they should). I would hope that it fixes the issue. Can you try once more? |
I've tried again - unfortunately no difference. Clicking Test Credentials still results in 'Jira Request failed: searchJira - [object Object]'. I noticed that if I ignore the 'Test Credentials' error and switch to the Daily Planner, the SP does issue JIRA requests. In my case it breaks either due to use of http or self-signed https, but those are separate problems which I've logged as #4 and #5 respectively. Were those bugs fixed or were I to use a properly signed https URL, JIRA integration might well work. I'll modify this ticket to make it specifically about 'Test Connection' failing. It would be very interesting to know if anyone else gets this "Jira Request failed: searchJira - [object Object]" message on 'Test Connection', or if there's just something weird about my setup. Rather than spend more time, perhaps let this issue sit until anyone can confirm/deny? I tried briefly to debug it myself, but I've never used NodeJS before and got lost in Promise/Callback hell. I got to the breakpoint where 'Connection failed!' is shown, only to find the Jira object is now out of scope. |
Testing with the latest (d5ba4f...) incorporating the http fix (#4), I still get the "Jira Request failed: searchJira - [object Object]" when testing (self-signed) HTTPS but 'http://redradish_jira.localhost' now works. So perhaps it was the self-signed cert problem (#5) all along, and the error isn't appearing in the console or anywhere. |
Thanks for checking again! Does setting |
Unfortunately no - with With 'http://redradish_jira.localhost' I got 'Connection Success', and happy Apache logs:
but I don't see any extra tasks, and creating a new task doesn't result in HTTP requests. What is the JIRA integration meant to achieve? I know that the JQL is returning issues, because I can see them from the command-line:
|
I realize that I did a very bad job in communicating how an useful application of the Jira (and now also git issue-) integration could look like and need to do a much better job at it (and maybe rethink how it is currently implemented). My personal workflow for Jira projects looks like this:
Adding tasks on Jira from the app is not implemented currently. Apart from the complexity of including the specific individual configuration for that, this is so because for my personal workflow this hasn't been a use case so far, as this is done in some sprint planning and possibly also by someone else. You could say that from the current point of view every planning for the team as a whole is still intended to be done with the Jira interface. Super Productivity is then used for your personal daily organization and time tracking. I don't know if this makes much sense to you. I'm really curious to hear your thoughts about it! EDIT: Thinking about it adding all tasks assigned to the current user automatically might be a really useful feature. |
Neat! I was expecting SP to start bulk-importing all my issues as tasks, and attempting to do two-way synchronization. But your model of linking an issue to a task as-needed, and creating worklogs from subtasks seems pretty good. I'm going to try using it seriously over the next few days and see how I go. Thanks for all your help so far. |
I'm really happy to hear that! Looking forward to hear your thoughts about it! Thank you very much for all your effort so far. Btw. I also implemented the option to Bulk import. Needs a little fine tuning, but the basic functionality is there. |
I close this for now. Feel free to reopen, if the error occurs again. |
It appears that establishing JIRA integration is broken. SP doesn't even issue a HTTP request.
To illustrate, start netcat listening on localhost:12345
root@jturner-desktop:~# nc -l 12345
Now enable JIRA integration with host http://localhost:12345
'nc' prints nothing, indicating that no HTTP request was received. SP reports an error:
The console does not report anything useful:
The text was updated successfully, but these errors were encountered: