External Trackers & Tools
This page describes the namespace-scoped tracker integrations used to create and mirror issues, receive issue webhooks, and attach development evidence. For network topology (resolver nodes, runner agents, MCP server), see the Integrations Guide.
Once an integration is configured, authorized users can send findings or Mockarty Tasks issues to that provider. Explicitly mirrored issues retain their upstream link; supported inbound webhooks then keep selected fields and development evidence current.
Connection names must be unique for the same integration type in the current namespace. Creating or renaming to an active duplicate returns HTTP 409 and preserves the existing connection. Choose another name before sending the request again.
Supported trackers
| Integration | Use case |
|---|---|
| Jira | Create and mirror issues; receive issue and comment changes |
| GitHub | Create and mirror issues; receive issue, comment, and development events |
| GitLab | SaaS or self-managed: create and mirror issues; receive issue, comment, and development events |
| Linear | Create issues in a configured team |
| Generic Webhook | Catch-all URL template for trackers without a dedicated adapter |
| Allure Server / TestOps | Optional one-way catalogue refresh; full migration has additional limits below |
| Jenkins | Run selected automated cases through saved CI jobs; see CI triggers |
| Test IT | Migrate cases and supported recent run history through a saved connection |
| TestRail | Import XML cases and pull run results |
Allure TestOps catalogue refresh
An Allure namespace connection with forward_pull: true periodically imports
case updates, supported custom fields, copied shared instructions and case files
from its configured base_url and numeric project_id. Scheduled updates use
the same import rules as a manual pull from the saved connection. Each pass
reads the full catalogue and keeps the accepted case and version identities.
Conflicting local edits are reported for review and are not overwritten.
Transient source responses (429, 502, 503, 504) and read connection
failures are retried at most twice. The pull respects Retry-After; a requested
wait over 30 seconds ends the current pass. A later scheduled attempt reconciles
the source again. Result uploads and token exchanges are not replayed.
With migration_snapshot: true, the connection also imports supported recent
launches and terminal result attempts. Set history_limit to the number of
launches to include: the default is 30, and the supported range is 0–1000.
Zero imports no launch history. Without this option, scheduled case updates
also import no launch history. Executed nested steps and before/after fixtures
keep their original names, outcomes and times, with files attached to their
executed step. Later edits to an authored case do not change those execution
snapshots. Repeated imports retain result and step identities; a source correction
is applied only when the imported result has no conflicting local edits.
Unknown execution states, unresolved case or attachment owners, and unsupported
workflow or report metadata remain explicit migration gaps. Check migration
reconciliation before switching the team; a refreshed catalogue is not proof
that the whole project has migrated.
If a case title is already used in the target namespace, the imported title
receives a suffix such as (Allure #103). Repeating the import keeps that title
and the same case. Conflicting local edits are reported for review; existing
cases are not adopted by title. Launch reports with a duplicate title get a
server/project/launch suffix. A collision with that source alias is reported as an error.
In Settings → Integrations → Allure TestOps, enable Import case updates
and Include migration history and attachments to use the saved connection.
The latter is off by default and stays selected when the connection is edited.
This starts scheduled background imports; check migration warnings before
cutover. A successful connection check verifies access, not migration completion.
An existing case that conflicts with the source identity is preserved, and
the import reports the conflict. Review these warnings before cutover. For an
independent migration, select a separate target namespace instead of deleting
existing cases to bypass the check.
The stored-token connection and the version of TestOps in use must be verified
before enabling this on a working catalogue.
If TestOps is unreachable and you need to stop a saved connection immediately,
send PATCH /api/v1/namespaces/{namespace}/integrations/{id} with
{"enabled":false}. This keeps its saved configuration and credential. The
request does not need to resolve the existing TestOps host; changing the host
or other connection details still requires normal validation.
Import from a saved connection now
In Test Cases → Import → From saved Allure TestOps connection, choose an
enabled Allure connection from the current namespace and the number of recent
launches. The dialog uses the project and credential saved in Settings →
Integrations. You do not need to enter the token again or enable scheduled
imports. This request does not change the connection’s background import settings.
Keep the dialog open while the source is read. The summary counts reconciled
cases, plans, launches and files, including unchanged items on a repeated import.
Review the pending count and warnings before cutover. Closing the dialog stops
the browser request; accepted changes can remain. If the response is interrupted
or unreadable, review the imported data before trying again.
For the same operation through REST, use an API token with test case write
and integrations read permission in the target namespace:
curl -X POST "$MOCKARTY_URL/api/v1/namespaces/$NAMESPACE/tcm/import/allure/pull" \
-H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"integrationId":"11111111-1111-4111-8111-111111111111","historyLimit":30}'
Replace integrationId with the saved connection UUID. historyLimit is optional:
it defaults to 30 and accepts 0–1000. The response contains processed, plans,
launches, media, pending, historyLimit and optional warnings. A success
response can contain warnings. A disabled, deleted or foreign namespace connection
cannot be imported. Busy nodes return 429; inspect existing data before retrying
any request whose result is unknown.
The request body must be one UTF-8 JSON object, at most 16 KiB, using the exact field names shown above. Repeated fields, unknown fields, trailing JSON values and null field values are rejected with HTTP 400. A missing or closed target namespace returns 404. If the namespace is replaced while the request is being read, the import returns 503; select the intended namespace again before retrying.
Authored steps and files
Custom fields with several selected options keep the values separate, including
labels that contain commas. Single-choice fields keep the selected label.
Migration also imports authored case steps and captures reusable-step occurrences
as editable steps with their source relationships preserved. Supported image
references are rewritten to Mockarty attachments; files are copied with their
original bytes, so opening them does not require access to TestOps after cutover.
Repeated occurrences of a reusable step keep the correct file at each occurrence.
A source correction creates an authored case version. The current attachment list
shows files for the current imported version; retained case versions keep their
own file links. Repeating the import verifies the copied bytes and can restore a
missing file from the same source revision without creating a duplicate file.
Conflicting local case or file edits are reported instead of overwritten.
Unsupported source references remain migration warnings; review them before cutover.
Execution history depth
Historical launches to import defaults to 30 in the saved Allure connection.
Choose 0 to skip execution history or 1–1000 to select the newest launches.
The count limits launches, not the number of results within each selected launch.
Older imported history is retained when you lower the count. 0 also keeps
previously imported reports while skipping new execution history. Case-wide execution
history is not fetched separately; execution attempts come from selected launches.
Review migration warnings for unsupported states or owners before cutover.
The saved configuration key is history_limit (integer).
Each imported Allure launch supports up to 10,000 result attempts. A launch
whose complete source and report exceed 64 MiB, or whose launch and execution files
exceed 200 MiB, reports a migration error instead of truncating data.
Case/shared-step captures, plans and historical case recovery also stop at a
64 MiB aggregate source-data limit. Historical case recovery shares one
200 MiB file budget; source data is never silently truncated.
Reports with more than 500 items show 100 results per page in the Suites tab.
Search by result or folder name, filter failures, and use Previous/Next; the
summary still includes every result in the run.
Imported historical launches are read-only source reports. Cancel, finish,
pause, resume, and item rerun requests return 409 Conflict. To execute the
imported cases in Mockarty, create a new test plan and run it. To apply a source
correction or continue an incomplete import, retry the migration through the
saved integration. An imported launch awaits its verified result details and
files before showing the corrected outcome; conflicting local edits are reported.
Authentication for catalogue refresh
Set auth_mode in the Allure connection configuration:
bearer(also used when omitted): the saved credential is already an access
token. Mockarty sends it directly as Bearer authorization.api_token: the saved credential is a personal API token. Mockarty exchanges
it for a short-lived access token using the configured TestOps server, then
uses that access token for catalogue requests. It renews the cached token
before its reported expiry. If TestOps does not report a lifetime, the token
is used without caching.
Example connection configuration; store the credential separately:
{
"base_url": "https://testops.example.com",
"project_id": 7,
"forward_pull": true,
"auth_mode": "api_token"
}
Use the exact TestOps origin (scheme and hostname, with an optional port),
without a path or query. Redirects are rejected. The exchange follows the
Allure TestOps API authentication documentation.
Confirm compatibility with your TestOps version before enabling refresh.
With api_token, Test connection checks project access through the current
TestOps API. Case and launch links use its project-scoped detail endpoints;
case search uses TestOps AQL. The legacy bearer mode keeps the existing
link and search protocol. A successful connection check verifies access, not
the completeness of a migration.
Adding an integration
- Open Security, open a finding, and select a provider under Send to tracker.
- Click Send. If that provider is not configured, Mockarty opens the External trackers settings modal instead of sending.
- Fill in the adapter-specific config (base URL, project key, …) and paste the API token.
- Click Save. The Test connection button is enabled after the configuration exists.
- Click Test connection — Mockarty runs a minimal API call against the target and stores the latest verdict.
Saved tokens are write-only: the UI and API never return their value. They are encrypted at rest when the administrator configures Mockarty’s PII encryption key.
What Mockarty stores
Stored credentials for namespace integrations
When configuring a namespace integration through the API or MCP, secretsRef
is the UUID of a credential already saved in Mockarty. It is not the token
itself. Invalid and all-zero UUIDs are rejected. When updating a connection,
omit secretsRef to keep its credential or send an empty string to detach it.
Use Test connection after changing credentials.
- Configuration belongs to one namespace and one provider.
- Token and webhook-secret values are write-only; API responses expose only whether each secret is set.
- Mirroring creates an explicit link between the local issue and the upstream issue. It does not turn arbitrary text containing an issue-like key into a synchronized record.
- Development webhooks add canonical HTTP(S) links to branches, commits, merge or pull requests, and pipelines.
Required permissions
| Provider | Token scope |
|---|---|
| Jira | Read issues in the configured project |
| GitHub | repo:read (public) / repo (private) via a personal access token |
| GitLab | API access to read, create, and update issues in the configured project |
| Linear | Workspace API key with read access |
Troubleshooting
Test credentials failed (401 / 403). Token expired or lacks required scopes. Reissue with the scopes above.
Test credentials failed (network timeout). Verify the admin node can reach the tracker URL directly. Behind a proxy, export HTTPS_PROXY for Mockarty server and restart.
A mirrored issue does not update. Check that the provider-specific issue webhook URL and secret are configured and that the relevant issue/comment events are enabled upstream.
Send to Tracker (one-click ticket creation)
Available from the Security Agent’s finding detail modal. Promotes a security finding into a ticket in your existing tracker with a single click — the finding’s title, severity, scanner, CVE/CWE, CVSS score, evidence, remediation guidance, and AI analysis are auto-formatted into the issue body. A deep-link back to Mockarty is also included so the ticket can be traced back to the original finding.
Supported trackers
| Tracker | API | Auth |
|---|---|---|
| Jira Cloud | REST v3 | API token (Basic auth with email:token) |
| Linear | GraphQL | Personal API key |
| GitHub Issues | REST v3 | Personal access token (Bearer) |
| GitLab Issues | REST v4 | Personal, project, or group access token (PRIVATE-TOKEN) |
How to use
- Open any security finding in the Security page.
- In the finding detail modal, find the Send to tracker row below the bug URL field.
- Select the tracker from the dropdown (Jira / Linear / GitHub / GitLab).
- Click Go.
- The ticket is created and its URL is auto-filled into the bug tracker URL field.
What is included in the ticket
The issue body follows a standard template:
## {title}
{description}
| Field | Value |
|----------|-----------|
| Scanner | sql_inj |
| Severity | critical |
| CVE | CVE-2024 |
| CWE | CWE-89 |
| CVSS | 9.8 |
| Target | /api/... |
### Evidence
{raw evidence}
### Remediation
{fix guidance}
### AI Analysis
{LLM analysis summary}
---
[Mockarty finding]({url}) · ID: {id}
Configuration
Tracker credentials are stored per namespace. To configure:
- Open Security, open a finding, select the provider under Send to tracker, and click Send. For an unconfigured provider Mockarty opens the settings modal without creating a ticket.
- Fill in:
- URL — Jira:
https://company.atlassian.net, Linear:https://api.linear.app. GitHub: leave empty for github.com (GitHub Cloud); for GitHub Enterprise Server enter your install’s address, e.g.https://github.company.com(Mockarty routes to its/api/v3API automatically). GitLab: enter the GitLab installation URL, for examplehttps://gitlab.comorhttps://gitlab.company.com; Mockarty appends/api/v4automatically. - Token — Jira API token, Linear personal key, GitHub PAT, or GitLab access token
- Project — Jira: project key (
SEC), Linear: team key, GitHub:owner/repo, GitLab: project path (team/app) or numeric project ID - Email (Jira only) — the Atlassian account email that owns the API token
- Issue type (Jira only) —
Bug(default),Task, orStory - Labels — comma-separated, auto-applied to every created ticket
- URL — Jira:
- Click Test credentials to verify.
- Save.
Two-way sync (inbound webhook)
When you mirror a Mockarty Tasks issue out to Jira, GitHub, or GitLab, the link is remembered. Two-way sync closes the loop: a change made in the external tracker (status moved, title edited, comment added) flows back to the mirrored Mockarty issue automatically — no manual re-import.
How to set it up
- Open the External trackers modal as described above and expand Two-way sync (inbound webhook) on the Jira, GitHub, or GitLab card.
- Copy the Webhook URL shown there. It looks like:
https://your-mockarty/api/v1/public/issuetracker/<namespace>/webhook/jira - Click Generate to create a Webhook secret, then Save. The secret is shown once — copy it now; afterwards Mockarty only tells you that a secret is set, never the value.
- In your external tracker, add a webhook pointing at that URL:
- Jira — Project settings → Webhooks → Create. Paste the URL, and add the secret as a request header
X-Mockarty-Webhook-Secret. Subscribe to Issue updated and Comment created. - GitHub — Repository settings → Webhooks → Add webhook. Paste the URL as the Payload URL, paste the secret into the Secret field (GitHub signs each delivery), content type
application/json, and select Issues and Issue comments events. - GitLab — Project → Settings → Webhooks. Paste the URL, paste the secret into Secret token, and enable issue and comment/note events. GitLab sends the token in
X-Gitlab-Token.
- Jira — Project settings → Webhooks → Create. Paste the URL, and add the secret as a request header
What syncs in
| Upstream change | Effect on the Mockarty issue |
|---|---|
| Status moved (e.g. In Progress, Done) | Issue transitions to the matching column |
| Title / summary edited | Issue title updated |
| Comment added | Comment added to the issue |
Status names are matched flexibly: Done / Closed / Resolved → Done, In Progress / Doing → In Progress, In Review / QA / Testing → In Review, To Do / Backlog / Open → To Do. A status name that doesn’t match any column is left unchanged.
Deliveries with a missing or wrong secret are rejected. An event for an issue that was never mirrored is ignored.
Development links on an issue
The GitHub and GitLab integration cards also show a separate Code links webhook URL. Add it to the repository/project with the same provider-scoped secret. Include a Mockarty issue key in a branch name, for example ABC-12-fix-login. Pushes, pull/merge requests, and CI runs that carry that branch are then linked to the issue automatically.
Open the issue detail panel to see the links grouped as Branches, Commits, Merge requests, and Pipelines, including the upstream state when the provider sends one. Each group initially shows up to six entries; Show all expands only that group.
Importing issues into Mockarty Tasks
Two import paths bring existing issues into a namespace’s tracker. Both accept
either a raw JSON body or a multipart file upload (up to 10 MiB), and both
map types, statuses and priorities onto Mockarty’s built-ins automatically.
From Jira
curl -X POST "http://localhost:5770/api/v1/namespaces/<ns>/issuetracker/import/jira" \
-H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @jira-export.json
The payload is the canonical Jira REST search shape ({"issues":[…]}) — what
the Jira API returns. Projects are created from the issue key prefixes; parent
links and comments come along. POST .../import/jira/pull pulls issues live
from a configured Jira connection instead of a file.
Invalid issue data may be skipped with warnings while valid rows continue. If
the import stops because access changed, the request was cancelled or storage
became unavailable, the response retains the old counters and adds outcome
(partial, stopped or unknown) and committed: the exact object IDs already
acknowledged. A 409 response reports changed creation access; a 503 response
reports cancellation, unavailability or uncertain completion. These responses
set retryAllowed: false; the import dialog keeps the partial result and disables
another submission from that attempt.
Review the tracker before starting another import. After a lost response or an
unknown outcome, an object may exist even if its ID was not returned. Do not
repeat the whole batch blindly. A live pull can retain results from earlier
pages when a later page fails; a successful import still returns HTTP 200.
Before merging a Mockarty export, the server checks the existing project and
issues. If that check is unavailable, it stops with 503 rather than treating
the project as empty and creating duplicates. Confirmed changes from a stopped
import remain in the audit trail, with counters and a partial or uncertain
outcome; this does not prove that an unacknowledged operation was rolled back.
From another Mockarty namespace (merge)
Export a project from the source namespace, then import it into the target —
this is how two teams’ trackers merge when namespaces are consolidated:
# 1. In the source namespace: export the project as JSON
curl ".../namespaces/<source-ns>/issuetracker/projects/<projectId>/export?format=json" \
-H "Authorization: Bearer $MOCKARTY_API_TOKEN" -o project.json
# 2. In the target namespace: merge it in
curl -X POST ".../namespaces/<target-ns>/issuetracker/import/mockarty" \
-H "Authorization: Bearer $MOCKARTY_API_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @project.json
The target project is found or created by its key prefix; parent/child links
are preserved. The merge is idempotent: issues already imported (matched by
their source key) are skipped, so re-running the same import never duplicates —
the response reports alreadyPresent alongside issuesCreated.
What comes across. Title, description, type, status, resolution, priority,
labels, parent links — and the planning data a person entered: story points,
start and due dates, original and remaining estimates, the environment note,
and your custom fields.
What does not, and why. Sprints and workflow states name things that exist
only in the source namespace — the target has its own, so an issue carrying
them would point at nothing. Board rank and issue numbers are positional and
are assigned fresh. Assignee and reporter are carried as written; if those
users do not exist in the target namespace, the fields keep the raw value
rather than silently emptying, so nothing is lost while you reconcile
accounts.
Launch-wide files
Files attached directly to an Allure TestOps launch are migrated to that launch’s
report, separately from case and step evidence. Launch files shows every file,
including repeated filenames, with 100 files per page. A launch accepts up to
10,000 global files within its shared 200 MiB media limit. A missing file prevents
publishing the corrected report; retry the integration after the source is
available. Previously published file links retain their original bytes.
Imported launch files are read-only. Refresh them through the saved integration;
use a new native run for new execution evidence. Allure exports preserve these
files beside a launch-attachments.json manifest. Standard Allure viewers may
not display launch-wide files. Result ingestion and CLI upload/watch reject such
a manifest with an actionable error instead of silently dropping those files.
Use the TestOps migration connection to preserve the original launch owner.