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

17.8k Views Asked by At

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.

2

There are 2 best solutions below

6
On BEST ANSWER

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.

1
On

[EDIT] This answer was valid in '17, when it was created. For an up to date anwer, pls see other answers in the thread.

So, here's how to do it.

  1. First of all, go to gitlab.
  2. Access with your data and get a personal access token. enter image description here
  3. Then, you can configure IntelliJ Idea with the following values: enter image description here
  4. You can now check all your GitLab's issues directly in Idea, as shown here below.enter image description here