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

2

7

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.

Grackle answered 10/5, 2017 at 10:14 Comment(0)
S
18

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.

Sowers answered 11/6, 2018 at 15:50 Comment(6)
Only problem is that I'm not being able to select the project, the dropdown just won't come down.Wilbourn
@CristianGomez By default, you will see all the tasks in all your projects. But, based on the GitLab Issues API information, you can apply a filter to only show a subset of tasks.Sowers
Mmn didn't try that, thanks, btw just to confirm, the plug-in by now it's abandoned/ not maintained anymore ?Wilbourn
@CristianGomez AFAIK it looks like it's still supported by Jetbrains as it's still included in the help documentation, but they might not have updated that component recentlySowers
THANKS. This information cannot be found on the jetbrains docs. It's currently bundled with phpstorm btwPotboy
in order to get the issues of a concrete project use url: http://gitlab.com/api/v4/projects/123/issues? where 123 is the ID of your project.Synergy
G
4

[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
Grackle answered 13/5, 2017 at 16:13 Comment(1)
in the current webstorm-version(July 2018), this gives me a "Not Found" - whereas the https://<gitlab-server>/api/v4/issues? url gives me all the tasks, but from here I cannot select a project. Any idea how I can get both access and limit tasks to a project?Rain

© 2022 - 2024 — McMap. All rights reserved.