Use case: Delete a Jira Project Configuration
Before you start
- Verify Permissions: Ensure you have the appropriate permissions in your Unity Organization to delete a Jira ProjectConfig. Typically, you must be an admin or have specific collaboration settings access.
- Organization Context: Know the Organization identifier (GUID) of the Unity Organization from which the configuration should be deleted.
- Jira ProjectConfig ID: You'll need the unique identifier (GUID) of the Jira ProjectConfig you wish to delete.
- Check for Linked Projects: Unlink any Unity projects that are connected to this Jira ProjectConfig before proceeding to avoid broken references.
How do I...?
To delete a Jira ProjectConfig, follow these steps:
- Get the Organization ID: Identify the Unity Organization where the Jira ProjectConfig is registered.
- Get the Jira ProjectConfig ID: Ensure you have the correct ProjectConfig ID from the list of configurations.
- Use the SDK: Call the
DeleteProjectConfigAsyncmethod in the Unity Collaboration SDK with the required properties. - Handle Responses: Ensure your implementation verifies whether the config was successfully deleted and handles any errors appropriately.
Example:
await jiraConfigService.DeleteProjectConfigAsync(
organizationId: organizationId,
jiraProjectConfigId: jiraProjectConfigId,
cancellationToken: cancellationToken);
Error Handling
- 400 Bad Request: Invalid input.
- 401 Unauthorized: Authentication required.
- 403 Forbidden: Insufficient permissions.