/** * Canonical Jira Cloud project URL builder. * * For "Open in Jira" / "View in Jira" on Project Home and project-level navigation, * use buildJiraProjectSummaryUrl to link to the project summary page. Path varies by type: * - Software: /jira/software/c/projects//summary * - Business: /jira/core/c/projects//summary (if applicable) * - Other: fallback to software path when type unknown. */ export interface BuildJiraProjectSummaryUrlParams { /** Jira site base URL (e.g. https://yoursite.atlassian.net). Will be normalized (no trailing slash). */ siteUrl: string; /** Project key (e.g. TEMD, JM, NOVA). */ projectKey: string; /** Optional. Jira project type (software, business, service_desk); affects path. */ projectTypeKey?: string | null; } /** * Build the Jira project summary URL. Use for "Open in Jira" / "View in Jira". * Software projects use /jira/software/c/projects//summary (the correct summary route). * Returns empty string if siteUrl or projectKey is missing (caller should disable link). */ export declare function buildJiraProjectSummaryUrl({ siteUrl, projectKey, projectTypeKey, }: BuildJiraProjectSummaryUrlParams): string; export interface BuildJiraProjectUrlParams { /** Jira site base URL (e.g. https://yoursite.atlassian.net). Will be normalized (no trailing slash). */ siteUrl: string; /** Project key (e.g. TEMD, JM). */ projectKey: string; /** Optional. Jira project type from REST API (e.g. software, business, service_desk). */ projectTypeKey?: string | null; } export interface BuildJiraProjectBoardsUrlParams extends BuildJiraProjectUrlParams { /** Optional. When set, link goes to this specific board; otherwise to the project's boards list. */ boardId?: number | string | null; } /** * Build the canonical Jira Cloud URL for a project's home page. * Normalizes siteUrl (trim, no trailing slash) and maps projectTypeKey to the correct path. */ export declare function buildJiraProjectUrl({ siteUrl, projectKey, projectTypeKey, }: BuildJiraProjectUrlParams): string; /** * Build the Jira Cloud URL for a project's board(s). Use this for "View on Jira" / "Open in Jira" * because board links work reliably; project home (/c/projects/KEY) can have login/redirect issues. * - Software: with boardId → .../jira/software/projects//boards/; else .../boards (list). * - Other types: fallback to project home (buildJiraProjectUrl). */ export declare function buildJiraProjectBoardsUrl({ siteUrl, projectKey, projectTypeKey, boardId, }: BuildJiraProjectBoardsUrlParams): string; //# sourceMappingURL=jira-project-url.d.ts.map