add_external_link
Link any M00N test entity to an external ticket in Jira, Linear, GitHub, GitLab, or other systems, returning a link record and preventing duplicates by refreshing existing links.
Instructions
Link any test entity (case/execution/release/launch) to an external ticket in Jira, Linear, GitHub, GitLab, or any other system. Returns the link record: id (the link UUID that remove_external_link takes), provider, externalId, externalUrl, externalTitle, externalStatus, linkType, providerMetadata, createdAt. Idempotent: the same provider plus externalId on the same entity refreshes the stored URL and title and returns that link instead of adding a duplicate. Provider jira REQUIRES the issue to exist in the connected Jira: the key is looked up FIRST and an unknown one fails the whole call with 400 and stores nothing, whatever externalUrl you supply. Once it resolves, title and canonical URL are read from the Jira API, and when the organization has remote links enabled a Remote Link is pushed back onto the Jira issue, so a failure there comes back as remoteLinkWarning while the local link still stands. Call list_external_links to see what an entity is already linked to and to get link ids, and remove_external_link to delete one by its link UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | Yes | Entity ID: numeric integer for case, UUID string for the others. | |
| linkType | No | covers | |
| provider | Yes | Provider identifier, lowercase. Common: 'jira', 'linear', 'github', 'gitlab'. | |
| entityType | Yes | Type of M00N entity to link. | |
| externalId | Yes | External ticket key/number, e.g. PROJ-123, ENG-456, #42. For Jira, also accepts a full issue URL (e.g. https://yourorg.atlassian.net/browse/PROJ-123) - the key is extracted automatically. | |
| externalUrl | No | Full URL to the external ticket. Required for non-Jira providers. IGNORED for Jira: the canonical URL is always fetched from the Jira API, and supplying one neither skips the issue lookup nor rescues an unknown key. | |
| externalTitle | No | Optional title/summary of the ticket. Ignored for Jira (title comes from the Jira API). |