1. Packages
  2. Gitlab Provider
  3. API Docs
  4. IntegrationCustomIssueTracker
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.IntegrationCustomIssueTracker

Explore with Pulumi AI

The gitlab.IntegrationCustomIssueTracker resource allows to manage the lifecycle of a project integration with Custom Issue Tracker.

Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const awesomeProject = new gitlab.Project("awesome_project", {
    name: "awesome_project",
    description: "My awesome project.",
    visibilityLevel: "public",
});
const tracker = new gitlab.IntegrationCustomIssueTracker("tracker", {
    project: awesomeProject.id,
    projectUrl: "https://customtracker.com/issues",
    issuesUrl: "https://customtracker.com/TEST-:id",
});
Copy
import pulumi
import pulumi_gitlab as gitlab

awesome_project = gitlab.Project("awesome_project",
    name="awesome_project",
    description="My awesome project.",
    visibility_level="public")
tracker = gitlab.IntegrationCustomIssueTracker("tracker",
    project=awesome_project.id,
    project_url="https://customtracker.com/issues",
    issues_url="https://customtracker.com/TEST-:id")
Copy
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
			Name:            pulumi.String("awesome_project"),
			Description:     pulumi.String("My awesome project."),
			VisibilityLevel: pulumi.String("public"),
		})
		if err != nil {
			return err
		}
		_, err = gitlab.NewIntegrationCustomIssueTracker(ctx, "tracker", &gitlab.IntegrationCustomIssueTrackerArgs{
			Project:    awesomeProject.ID(),
			ProjectUrl: pulumi.String("https://customtracker.com/issues"),
			IssuesUrl:  pulumi.String("https://customtracker.com/TEST-:id"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;

return await Deployment.RunAsync(() => 
{
    var awesomeProject = new GitLab.Project("awesome_project", new()
    {
        Name = "awesome_project",
        Description = "My awesome project.",
        VisibilityLevel = "public",
    });

    var tracker = new GitLab.IntegrationCustomIssueTracker("tracker", new()
    {
        Project = awesomeProject.Id,
        ProjectUrl = "https://customtracker.com/issues",
        IssuesUrl = "https://customtracker.com/TEST-:id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.IntegrationCustomIssueTracker;
import com.pulumi.gitlab.IntegrationCustomIssueTrackerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
            .name("awesome_project")
            .description("My awesome project.")
            .visibilityLevel("public")
            .build());

        var tracker = new IntegrationCustomIssueTracker("tracker", IntegrationCustomIssueTrackerArgs.builder()
            .project(awesomeProject.id())
            .projectUrl("https://customtracker.com/issues")
            .issuesUrl("https://customtracker.com/TEST-:id")
            .build());

    }
}
Copy
resources:
  awesomeProject:
    type: gitlab:Project
    name: awesome_project
    properties:
      name: awesome_project
      description: My awesome project.
      visibilityLevel: public
  tracker:
    type: gitlab:IntegrationCustomIssueTracker
    properties:
      project: ${awesomeProject.id}
      projectUrl: https://customtracker.com/issues
      issuesUrl: https://customtracker.com/TEST-:id
Copy

Create IntegrationCustomIssueTracker Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IntegrationCustomIssueTracker(name: string, args: IntegrationCustomIssueTrackerArgs, opts?: CustomResourceOptions);
@overload
def IntegrationCustomIssueTracker(resource_name: str,
                                  args: IntegrationCustomIssueTrackerArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def IntegrationCustomIssueTracker(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  issues_url: Optional[str] = None,
                                  project: Optional[str] = None,
                                  project_url: Optional[str] = None)
func NewIntegrationCustomIssueTracker(ctx *Context, name string, args IntegrationCustomIssueTrackerArgs, opts ...ResourceOption) (*IntegrationCustomIssueTracker, error)
public IntegrationCustomIssueTracker(string name, IntegrationCustomIssueTrackerArgs args, CustomResourceOptions? opts = null)
public IntegrationCustomIssueTracker(String name, IntegrationCustomIssueTrackerArgs args)
public IntegrationCustomIssueTracker(String name, IntegrationCustomIssueTrackerArgs args, CustomResourceOptions options)
type: gitlab:IntegrationCustomIssueTracker
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IntegrationCustomIssueTrackerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IntegrationCustomIssueTrackerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationCustomIssueTrackerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IntegrationCustomIssueTrackerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IntegrationCustomIssueTrackerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var integrationCustomIssueTrackerResource = new GitLab.IntegrationCustomIssueTracker("integrationCustomIssueTrackerResource", new()
{
    IssuesUrl = "string",
    Project = "string",
    ProjectUrl = "string",
});
Copy
example, err := gitlab.NewIntegrationCustomIssueTracker(ctx, "integrationCustomIssueTrackerResource", &gitlab.IntegrationCustomIssueTrackerArgs{
	IssuesUrl:  pulumi.String("string"),
	Project:    pulumi.String("string"),
	ProjectUrl: pulumi.String("string"),
})
Copy
var integrationCustomIssueTrackerResource = new IntegrationCustomIssueTracker("integrationCustomIssueTrackerResource", IntegrationCustomIssueTrackerArgs.builder()
    .issuesUrl("string")
    .project("string")
    .projectUrl("string")
    .build());
Copy
integration_custom_issue_tracker_resource = gitlab.IntegrationCustomIssueTracker("integrationCustomIssueTrackerResource",
    issues_url="string",
    project="string",
    project_url="string")
Copy
const integrationCustomIssueTrackerResource = new gitlab.IntegrationCustomIssueTracker("integrationCustomIssueTrackerResource", {
    issuesUrl: "string",
    project: "string",
    projectUrl: "string",
});
Copy
type: gitlab:IntegrationCustomIssueTracker
properties:
    issuesUrl: string
    project: string
    projectUrl: string
Copy

IntegrationCustomIssueTracker Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IntegrationCustomIssueTracker resource accepts the following input properties:

IssuesUrl This property is required. string
The URL to view an issue in the external issue tracker. Must contain :id.
Project This property is required. string
The ID or full path of the project for the custom issue tracker.
ProjectUrl This property is required. string
The URL to the project in the external issue tracker.
IssuesUrl This property is required. string
The URL to view an issue in the external issue tracker. Must contain :id.
Project This property is required. string
The ID or full path of the project for the custom issue tracker.
ProjectUrl This property is required. string
The URL to the project in the external issue tracker.
issuesUrl This property is required. String
The URL to view an issue in the external issue tracker. Must contain :id.
project This property is required. String
The ID or full path of the project for the custom issue tracker.
projectUrl This property is required. String
The URL to the project in the external issue tracker.
issuesUrl This property is required. string
The URL to view an issue in the external issue tracker. Must contain :id.
project This property is required. string
The ID or full path of the project for the custom issue tracker.
projectUrl This property is required. string
The URL to the project in the external issue tracker.
issues_url This property is required. str
The URL to view an issue in the external issue tracker. Must contain :id.
project This property is required. str
The ID or full path of the project for the custom issue tracker.
project_url This property is required. str
The URL to the project in the external issue tracker.
issuesUrl This property is required. String
The URL to view an issue in the external issue tracker. Must contain :id.
project This property is required. String
The ID or full path of the project for the custom issue tracker.
projectUrl This property is required. String
The URL to the project in the external issue tracker.

Outputs

All input properties are implicitly available as output properties. Additionally, the IntegrationCustomIssueTracker resource produces the following output properties:

Active bool
Whether the integration is active.
CreatedAt string
The ISO8601 date/time that this integration was activated at in UTC.
Id string
The provider-assigned unique ID for this managed resource.
Slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
UpdatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
Active bool
Whether the integration is active.
CreatedAt string
The ISO8601 date/time that this integration was activated at in UTC.
Id string
The provider-assigned unique ID for this managed resource.
Slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
UpdatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
active Boolean
Whether the integration is active.
createdAt String
The ISO8601 date/time that this integration was activated at in UTC.
id String
The provider-assigned unique ID for this managed resource.
slug String
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt String
The ISO8601 date/time that this integration was last updated at in UTC.
active boolean
Whether the integration is active.
createdAt string
The ISO8601 date/time that this integration was activated at in UTC.
id string
The provider-assigned unique ID for this managed resource.
slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
active bool
Whether the integration is active.
created_at str
The ISO8601 date/time that this integration was activated at in UTC.
id str
The provider-assigned unique ID for this managed resource.
slug str
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updated_at str
The ISO8601 date/time that this integration was last updated at in UTC.
active Boolean
Whether the integration is active.
createdAt String
The ISO8601 date/time that this integration was activated at in UTC.
id String
The provider-assigned unique ID for this managed resource.
slug String
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt String
The ISO8601 date/time that this integration was last updated at in UTC.

Look up Existing IntegrationCustomIssueTracker Resource

Get an existing IntegrationCustomIssueTracker resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntegrationCustomIssueTrackerState, opts?: CustomResourceOptions): IntegrationCustomIssueTracker
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active: Optional[bool] = None,
        created_at: Optional[str] = None,
        issues_url: Optional[str] = None,
        project: Optional[str] = None,
        project_url: Optional[str] = None,
        slug: Optional[str] = None,
        updated_at: Optional[str] = None) -> IntegrationCustomIssueTracker
func GetIntegrationCustomIssueTracker(ctx *Context, name string, id IDInput, state *IntegrationCustomIssueTrackerState, opts ...ResourceOption) (*IntegrationCustomIssueTracker, error)
public static IntegrationCustomIssueTracker Get(string name, Input<string> id, IntegrationCustomIssueTrackerState? state, CustomResourceOptions? opts = null)
public static IntegrationCustomIssueTracker get(String name, Output<String> id, IntegrationCustomIssueTrackerState state, CustomResourceOptions options)
resources:  _:    type: gitlab:IntegrationCustomIssueTracker    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Active bool
Whether the integration is active.
CreatedAt string
The ISO8601 date/time that this integration was activated at in UTC.
IssuesUrl string
The URL to view an issue in the external issue tracker. Must contain :id.
Project string
The ID or full path of the project for the custom issue tracker.
ProjectUrl string
The URL to the project in the external issue tracker.
Slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
UpdatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
Active bool
Whether the integration is active.
CreatedAt string
The ISO8601 date/time that this integration was activated at in UTC.
IssuesUrl string
The URL to view an issue in the external issue tracker. Must contain :id.
Project string
The ID or full path of the project for the custom issue tracker.
ProjectUrl string
The URL to the project in the external issue tracker.
Slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
UpdatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
active Boolean
Whether the integration is active.
createdAt String
The ISO8601 date/time that this integration was activated at in UTC.
issuesUrl String
The URL to view an issue in the external issue tracker. Must contain :id.
project String
The ID or full path of the project for the custom issue tracker.
projectUrl String
The URL to the project in the external issue tracker.
slug String
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt String
The ISO8601 date/time that this integration was last updated at in UTC.
active boolean
Whether the integration is active.
createdAt string
The ISO8601 date/time that this integration was activated at in UTC.
issuesUrl string
The URL to view an issue in the external issue tracker. Must contain :id.
project string
The ID or full path of the project for the custom issue tracker.
projectUrl string
The URL to the project in the external issue tracker.
slug string
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt string
The ISO8601 date/time that this integration was last updated at in UTC.
active bool
Whether the integration is active.
created_at str
The ISO8601 date/time that this integration was activated at in UTC.
issues_url str
The URL to view an issue in the external issue tracker. Must contain :id.
project str
The ID or full path of the project for the custom issue tracker.
project_url str
The URL to the project in the external issue tracker.
slug str
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updated_at str
The ISO8601 date/time that this integration was last updated at in UTC.
active Boolean
Whether the integration is active.
createdAt String
The ISO8601 date/time that this integration was activated at in UTC.
issuesUrl String
The URL to view an issue in the external issue tracker. Must contain :id.
project String
The ID or full path of the project for the custom issue tracker.
projectUrl String
The URL to the project in the external issue tracker.
slug String
The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.
updatedAt String
The ISO8601 date/time that this integration was last updated at in UTC.

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_integration_custom_issue_tracker. For example:

terraform

import {

to = gitlab_integration_custom_issue_tracker.example

id = “see CLI command below for ID”

}

Import using the CLI is supported using the following syntax:

You can import a gitlab_integration_custom_issue_tracker state using the project ID, e.g.

$ pulumi import gitlab:index/integrationCustomIssueTracker:IntegrationCustomIssueTracker tracker 1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
GitLab pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.