Search code examples
intellij-ideaidegitlabgitlab-apiintellij-17

Connecting IntelliJ Idea Servers to GitLab.com: what info is actually needed?


I'm trying to configure IntelliJ IDEA 2017.1.2 in order to get the tasks from a private repository on GitLab.com.

To do that I have to create the corresponding entry in the Servers window.

Now, I don't have the faintest idea about how I should fill the Servers form in IDEA.

What URL I have to use for Server URL ? What token ?

enter image description here

Any advice? Thx in advance.


Solution

  • UPDATE: Based on the information mentioned in the issue IDEA-193736, the connectivity problem with the new GitLab Issues API (V4) should be fixed when the update 2018.2 is released.

    The https://gitlab.com URL didn't work for me as the API URL was updated to V4 on GitLab. So, after some trial and error I was able to make it work by completing the following steps:

    1. Create a Personal Access Token on GitLab (https://gitlab.com/profile/personal_access_tokens) with API and read_user access permissions
    2. In IntelliJ (or Pycharm in my case), the Server URL should be https://gitlab.com/api/v4/issues? (with the question mark at the end)
    3. The token is the Personal Access Token that was generated previously

    Also, don't forget to increase the connection timeout to 15000 milliseconds under the Tasks section in the Settings (Settings => Tools => Tasks).

    Task Server Screenshot

    Hope it helps someone else.