Jira to Git integration Issue

Issue #61 invalid
Smriti Priya created an issue

Hi Team,

We are using Jira software 7.3.2 version(On premise server) and Gitlab (GitLab Community Edition) 8.15.4, Is integration is possible with your plugin. While configuration I am getting below error. error: https://api/v4/projects/https%3A%2F%2F%2FTest%2FTestProject%2F/repository/branches/master . See JIRA log for details.

Comments (35)

  1. Smriti Priya reporter

    Hi,

    After using 1.2.6 version also I am getting same error, would you please suggest?

    Thanks & Regards, Smriti Priya

  2. Dmitrii Apanasevich repo owner

    I'd recommend following the advice: to look through JIRA log to get error details.

  3. Smriti Priya reporter

    Dmitrii,

    Below is the screen shot:

    [cid:image001.png@01D487FE.8E02D420]

    Thanks & Regards, Smriti Priya

  4. Matthias Hertel

    hi

    i have exactly the same problem

    it does not matter what i fill in the form , it does not work , i tried many combination .... repository group different access tokes etc

    see screenshots below

    Screenshot from 2018-11-29 13-37-29.png

    and here the java exception

    Screenshot from 2018-11-29 13-38-43.png

  5. Matthias Hertel

    i wonder about the urlencoded slash in the exception message ... i will try gitlab.com ... maybe its a problem with my selfhosted git ...

    ah ok that is strange with gitlab.com it works , see below , maybe a problem with my selfhosted git ... or with subdomain routing ?

    Screenshot from 2018-11-29 13-44-03.png

  6. Matthias Hertel

    hmmm that is really weird ... on my selfhosted git i have to setup the project id instead of the path

    any suggestion how to fix that ?

    Screenshot from 2018-11-29 13-57-14.png

  7. Matthias Hertel

    ok now i have the problem that in the jigit table in the issue view the revisions link is rendered false and it gives me an 404 on the gitlab site .. so i have to set the path correctly the hack does not work

    Screenshot from 2018-11-29 14-19-22.png

  8. Matthias Hertel

    hey @dmitry_apanasevich

    thx for quick response ...

    yes maybe an issue with the dot in my username ... but on gitlab.com i have the dot in username too and it works (maybe an nignx config to fix that issue) i will try the following on my selfhosted gitlab instance:

    • username without dots inside
    • try access from jigit
  9. Dmitrii Apanasevich repo owner

    but on gitlab.com i have the dot in username too and it works (maybe an nignx config to fix that issue)

    or you have another GitLab version.

    the revisions link is rendered false and it gives me an 404 on the gitlab site

    Please, try to remove the slash at the end of host name.

  10. Matthias Hertel

    gitlab version is latest:

    Screenshot from 2018-11-29 14-41-20.png

    ok i tried a username without dots ... it does not work

    i created a new user without dots .... see below

    Screenshot from 2018-11-29 14-42-21.png

  11. Matthias Hertel

    i guess the main problem is what i figured out below ... but i dont know why ... any suggestions with my gitlab config ?

    this will work: (project id instead of path in url)

    https://gitlab.mhertel.de/api/v4/projects/14/repository/branches/master
    

    returns:

    Screenshot from 2018-11-29 15-00-02.png

    this will not work

    https://gitlab.mhertel.de/api/v4/projects/mhertel%2Fccva-go/repository/branches/master
    

    this returns a 404:

    Screenshot from 2018-11-29 15-00-25.png

  12. Dmitrii Apanasevich repo owner

    Hmm. I've just tried to go by URL you've left above and have got this:

    result.jpg

    UPD I've edited the image to hide your email.

  13. Matthias Hertel

    okay i solved the issue .... the problem described above with the 404 error was the reason ...

    i had an misconfiguration in my nginx config .... @dmitry_apanasevich you were right , the problem was the urlencoded slash was misinterpreted by nginx so the webserver responded with 404

  14. Dmitrii Apanasevich repo owner

    You are welcome :)

    Please, leave a feedback about the plugin at marketplace page if you like it.

  15. Matthias Hertel

    yes one more question ...

    i made a commit to my repo with the correct issue key ... works fine ... and the tab jigit the commits appears ... but it is posible to set the state of the issue automatically to "in progress " ?

  16. Dmitrii Apanasevich repo owner

    is posible to set the state of the issue automatically to "in progress " ?

    No, it's not possible. Because it's your custom logic. Other workflows use commits with issue key as a signal to close issue, for example here, on Bitbucket.

  17. Dmitrii Apanasevich repo owner

    @smritip what about about your problem? Have you found the solution? Sorry, we've littered your issue.

  18. Smriti Priya reporter

    Dmitrii,

    Still I am facing issue, please find the attach error.

    Thanks & Regards, Smriti Priya

  19. Dmitrii Apanasevich repo owner

    @smritip, sorry, where is the attachment? Please, attach carefully the screenshot of repo settings and a part of JIRA log with the exception. I can't help you without this information.

  20. Dmitrii Apanasevich repo owner

    Field Path should contain a repo name only. There should be Test/TestProject without sever URL

  21. Dmitrii Apanasevich repo owner

    Are there still no commits on Jigit tab? What was the commit message of expected commit?

  22. Dmitrii Apanasevich repo owner

    Have you read the plugin overview or wiki? Look: Jigit is an add-on for JIRA Server 7.0+ that provides an issue tab, which displays information about all commits referencing to the issue key. So, commit message should contain an issue key to have the commit displayed on the issue tabpage.

    test is absolutely valueless message. How plugin will guess which issue is related to this commit?

  23. Log in to comment