Use case: Retrieve Jira Configurations for an Organization
Before you start
- Verify Permissions: Confirm that you have permission to access Jira configurations for the Unity organization. Typically, this means being a member or organization admin.
- Organization ID: You'll need the unique Unity Organization ID to query for associated Jira configurations.
- Understand Scope: This operation returns Jira ServerConfigs that are available or linked to the specified Unity Organization.
How do I...?
To get all Jira configurations available for a Unity Organization, follow these steps:
- Get the Organization ID: Identify the Unity Organization for which you want to fetch Jira configurations.
- Use the SDK: Call the
ReadConfigsAsyncmethod in the Unity Collaboration SDK with the required properties. - Process the Response: The response will contain information about available ServerConfigs that can be used or linked.
Example:
var configs = await jiraConfigService.ReadConfigsAsync(
organizationId: organizationId,
cancellationToken: cancellationToken);
Error Handling
- 400 Bad Request: Invalid input.
- 401 Unauthorized: Authentication required.
- 403 Forbidden: Insufficient permissions.