docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Use case: Create a Jira Issue

    Before you start

    1. Verify Permissions: Ensure you have permissions to create issues in the linked Jira project. This typically requires a valid Jira user account with issue creation rights.
    2. Linked Jira Configuration: Confirm that the Unity project is linked to a valid Jira ProjectConfig via a ServerConfig.
    3. Required Fields: Know the required fields for issue creation (e.g., summary, description, issue type). These may vary depending on the Jira project configuration.
    4. Jira Project Context: Ensure the Jira Project ID and configuration context are valid and active.
    5. Prepare Metadata: You may need to retrieve available issue types or fields from the Jira project if your application dynamically builds issue forms.

    How do I...?

    To create a Jira issue from a Unity project, follow these steps:

    1. Ensure a Jira Link Exists: Your Unity project must already be linked to a Jira ProjectConfig.
    2. Prepare the payload for the request: Include fields like summary, description, and issue type in your request payload.
    3. Use the SDK: Call the CreateIssueAsync method in the Unity Collaboration SDK with the required properties.
    4. Handle Responses: Ensure your implementation verifies whether the issue was successfully created and handles any errors appropriately.

    Example:

    var summary = "Issue summary";
    var description = "Issue description";
    var reporterId = new JiraUserId("Reporter User ID");
    var assigneeId = new JiraUserId("Assignee User ID");
    var parentId = new JiraIssueId("Parent Issue ID");
    
    var jiraIssueId = await jiraIssueService.CreateIssueAsync(
        projectId: projectId,
        annotationId: annotationId,
        jiraProjectConfigId: jiraProjectConfigId,
        issueTypeId: issueTypeId,
        summary: summary,
        description: description,
        reporterUserId: reporterId,
        assigneeUserId: assigneeId,
        parentIssueId: parentId,
        cancellationToken: cancellationToken);
    

    Error Handling

    • 400 Bad Request: Invalid input.
    • 401 Unauthorized: Authentication required.
    • 403 Forbidden: Insufficient permissions.

    Related Links

    • Search Issues
    • Get Issue Types
    • Link Issue to Annotation
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)