Skip to content

How to create project in group and subgroup? #610

@stijnb1234

Description

@stijnb1234

I want to create a project in a group and subgroup.

So my group is called d-group1, and my subgroups are websites and stijn.

So the path should be /d-group1/websites/stijn, but that's invalid.

The code I'm using:

Project projectSpec = new Project()
    .withName("Test")
    .withPath("/d-group1/websites/stijn/")
    .withPublic(false);

Project project = Main.getGitLabApi().getProjectApi().createProject(projectSpec);

How to get this working?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions