Preview problems as tickets
scout_ticket_previewPreview filing selected problems as GitHub or Jira tickets by checking which are already tracked, returning would-be and existing tickets plus a 10-minute preview ID without sending anything.
Instructions
Preview filing the problems the person chose as GitHub or Jira tickets. Reads the tracker to find which are already filed (by the marker scenescout export writes) and sends nothing. Returns each ticket that would be filed, the ones already filed, any over the limit of one filing, and a previewId that lasts 10 minutes. Show the person the list; to file it, call scout_ticket_file with the previewId. to: "github" with target the repository as owner/name, or "jira" with target the project key (the Jira site is JIRA_BASE_URL in the server's settings). The tracker's sign-in comes from the server's environment or the desktop extension's settings only (GH_TOKEN or GITHUB_TOKEN; JIRA_EMAIL and JIRA_API_TOKEN): never ask the person for a token and never pass one. Touches no browser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where the team keeps its tickets | |
| ids | Yes | The finding ids the person chose, as scout_cards shows them | |
| target | Yes | GitHub: the repository as owner/name. Jira: the project key, such as "QA" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| cap | Yes | ||
| later | Yes | ||
| where | Yes | ||
| toFile | Yes | ||
| leftOut | Yes | ||
| createdAt | Yes | ||
| expiresAt | Yes | ||
| previewId | Yes | ||
| alreadyFiled | Yes |