Skip to content
/
All docs pages

Reference

BugHerd formats

What the BugHerd importer (packages/core/src/importers/bugherd/) expects from BugHerd's CSV export and its API v2, where each fact comes from, and where BugHerd's documentation says nothing. Read on 2026-10-16. When the docs are silent, the importer reads the field leniently and the dry-run report (import:bugherd --dry-run) shows what it found, so the first real import can be checked before anything is written.

Sources

#SourceWhat it gave
S1BugHerd API v2 OpenAPI spec, https://docs.bugherd.com/api/openapi.yaml (OpenAPI 3.1.0, "BugHerd API v2" 2.0.0). Read 2026-10-16.Endpoints, parameters, schemas, status and priority ids, paging, rate limits. The primary source.
S2BugHerd API reference, https://www.bugherd.com/api_v2, which now redirects to https://docs.bugherd.com/api. Read 2026-10-16.The page renders in the browser only (our fetcher got the navigation, not the text), and the docs host blocks automated reading. S1 is the same reference in machine-readable form.
S3BugHerd help: "What do the different statuses mean for my tasks?", https://support.bugherd.com/en/articles/11430490. Read 2026-10-16.The six built-in statuses and custom columns.
S4BugHerd help: "How to export your bugs from BugHerd", https://support.bugherd.com/en/articles/11430562. Read 2026-10-16.How to start an export. Not its columns.
S5BugHerd help: "BugHerd Zapier Triggers & Action API references", https://support.bugherd.com/en/articles/11430545. Read 2026-10-16.BugHerd's own display labels for task fields ("Task ID", "BugHerd ID", "Severity", "Reported By Email", "Browser Size", "Share URL", "Custom Data"…).
S6BugHerd help: Members vs Clients, https://support.bugherd.com/en/articles/11424346; members-only comments, https://support.bugherd.com/en/articles/11596224; archived tasks, https://support.bugherd.com/en/articles/11430524; deleting tasks, https://support.bugherd.com/en/articles/11430506; public feedback reporter email, https://support.bugherd.com/en/articles/11430483. Read 2026-10-16.Roles, private comments, archive, deletion, public feedback.
S7Captured webhook payloads in Pipedream's BugHerd component (npm @pipedream/bugherd 0.8.0, sources/*/test-event.mjs, captured 2026-01-09). Read 2026-10-16.Real task and comment JSON as BugHerd sends it today. Secondary, but real data.

Third-party descriptions (withone.ai, the bugherd-mcp npm package) were read too and agree with S1 where they overlap. They are not relied on.

API v2

Base and auth (S1). https://www.bugherd.com/api_v2/…, HTTPS only. HTTP Basic: the organization's API key as the user name, x as the password. The key is under Settings → General settings.

Rate limits (S1). An average of 60 requests a minute with bursts of 10. Above that BugHerd answers 429 Too Many Requests, and the guidance is to back off and retry after a short delay. Silent: S1 doesn't mention a Retry-After header or a 429 body. The client honours Retry-After when present (seconds or an HTTP date), otherwise backs off 1 s, 2 s, 4 s… up to 60 s, five retries. It also spaces its own requests as a token bucket (10 at once, then one a second) so it rarely hits the limit.

Paging (S1). List endpoints take page, starting at 1, and return up to 100 records. meta.count is the total across pages. An empty array is the end. Some lists have no meta: taskboard tasks, columns and webhooks. The client stops at an empty page or once meta.count records have arrived, and for lists without meta at a page shorter than 100.

Endpoints the importer reads

EndpointBody keyUsed for
GET /projects.jsonprojects, metapicking a project
GET /projects/{id}.jsonprojectname, devurl, sites; includes members, guests, columns
GET /projects/{id}/columns.jsoncolumns (no meta)naming custom-column statuses
GET /users/members.jsonusers, metathe team (role member)
GET /users/guests.jsonusers, metaclients (role guest; BugHerd's UI calls them "Clients")
GET /users.jsonusers, metaeveryone else
GET /projects/{id}/tasks.jsontasks, metatasks. Filters: status, priority, tag, assigned_to_id, external_id, updated_since, created_since (date-time)
GET /projects/{id}/tasks/feedback.jsontasks, metathe feedback inbox (no column yet)
GET /projects/{id}/tasks/archive.jsontasks, metaclosed or archived tasks
GET /projects/{id}/tasks/{id}.jsontaskfull task, when a list row lacks details
GET /projects/{id}/tasks/{id}/comments.jsoncomments, metacomments
GET /projects/{id}/tasks/{id}/attachments.jsonattachments, metaattachments

The member and guest lists use the key users, not members or guests (S1). The client accepts either.

Also documented, not used: GET /organization.json, /projects/active.json, /tasks/{id}.json (global id), /projects/{id}/local_tasks/{local_task_id}.json, /projects/{id}/tasks/taskboard.json, /users/{id}/tasks.json, /users/{id}/projects.json, and webhooks. The mock (packages/core/test/bugherd-mock.ts) serves them all.

Silent: whether tasks.json includes feedback and archived tasks. The importer reads all three lists and merges them by id, marking rows from the archive.

Task (S1, confirmed by S7)

FieldTypeImporter
idintegerglobal id → globalId (comments and attachments URLs)
local_task_idintegerthe #123 people know → id
project_id, project_name
titlestring, often nulltitle
descriptionstringdescription
statusstringbuilt-in name or custom column name; wins over status_id
status_idinteger | nullsee Statuses
column_idinteger | nullthe column the task is in (S7: equals status_id for column tasks)
prioritynot set, critical, important, normal, minor
priority_idinteger0 not set, 1 critical, 2 important, 3 normal, 4 minor
tag_namesstring[]tags
site + urlstring, stringthe page is site + url; url is a path in S1's example (/checkout), and both are null in S7 for tasks made in the app. Falls back to the project's devurl
requesterUser | nullthe reporter
requester_id, requester_emailsee People
assigned_toUser | nullfirst assignee
assignees, assignee_ids, assigned_to_idUser[], integer[], integerall assignees; pinprompt keeps the first
updaterUser | nullnot used
created_at, updated_at, closed_at, deleted_at, due_atdate-timesee Timestamps
selector_infoobject | nullS1 examples: {path, html, version}; path → the selector. S7: {} for tasks without a pin. Older data.bugOffsetX/Y still read
screenshot_urluri | nullthe screenshot (downloaded without the API key)
screenshot_dataobject | null{screenshot_width, screenshot_height, screenshot_pin_x, screenshot_pin_y} → screenshotPin
attachmentsuri[]merged with the attachments list
requester_os, requester_browser, requester_browser_size, requester_resolutionstring | nullenvironment. Sizes look like 1214 x 806 px
secret_linkurilogin-free link ("Share URL" in S5)
admin_linkurithe task in BugHerd (needs a login)
external_idstring | null
metadataobject | nullcustom data captured with the task
fullstory_session_url, logrocket_session_url, logsnot used

Silent: the shape of selector_info (S1 declares an untyped object) and whether list rows carry every field. The client fetches the full task when a row has no description, screenshot_url or selector_info.

Comment (S1)

{id, text, created_at, user_id, is_private}. No user object in S1: the author comes from the user lists by user_id. Webhook payloads (S7) do carry a user object, and the client reads it when present. A user_id that is in no list (someone removed from the account) keeps just the id and shows as "Someone (BugHerd)".

is_private: true is a Members only comment (Premium plan, S6): clients never see it in BugHerd. The importer marks it private. Imported comments are team-only in pinprompt unless the author matches a pinprompt client, and only members can write members-only comments, so they stay away from clients.

Attachment (S1)

{id, file_name, url, created_at}. Image attachments (PNG, JPEG, WebP) are copied; others are linked from the item.

User (S1)

{id, email, display_name, avatar_url}.

Column (S1)

{id, name, project_id, position, tasks_count, created_at, updated_at}. S1 flags tasks_count as possibly wrong (even negative), so the importer ignores it. Silent: whether the built-in columns appear in columns.json. S7 shows a task in "backlog" with status_id = column_id = 2115832, so in current projects the built-in columns have their own ids too.

Project (S1)

{id, name, created_at, devurl, is_active, is_public, has_custom_columns, sites[], members[], guests[], columns[], …}. created_at is "2011-02-06 23:43:07": no time zone.

Statuses

Built in (S3): Feedback (reported, not triaged; status_id null), Backlog (0), Todo (1), Doing (2), Done (4: the work is finished but the task owner hasn't verified it), Archive / closed (5). Ids above 5 are columns. Projects can add custom columns (S3), and status then carries the column's name (S1). status_id 3 is not documented.

BugHerdpinprompt
feedback, backlog, todo, doingNeeds triage (never routed to an agent on import)
any custom columnNeeds triage
doneDone (closed), or Needs triage with --done-is-open / the "Done is open" option
closed / archivedDone
deleted (deleted_at set)skipped

Without a status name, a column id is looked up in columns.json, and an unknown id reads column <id> so it shows in the report. CSV spellings "To Do", "to-do", "Archive" and "Archived" are read as the built-ins.

Priorities

not set / 0, critical / 1, important / 2, normal / 3, minor / 4 (S1). BugHerd's UI and Zapier call it Severity (S5). They map to P0 (critical), P1 (important), P2 (normal, not set) and P3 (minor). Anything else maps by a few common words (blocker → P0, high → P1, low → P3), otherwise P2, and the dry-run warns.

People

  • Members (S6): the agency's team. users/members.json.
  • Clients (guests): can create and see their own tasks, comment and attach files, but can't see members-only comments. users/guests.json.
  • Public feedback: people reporting through a project's public feedback tab, without a BugHerd account. They are identified by an email, which the site can pre-fill and can make required (S6). Silent: whether the email is optional, and how such a task's requester looks. The importer treats a task with no requester user but a requester_email as public feedback (role public), and one with neither as having no reporter.

pinprompt matches people by email to the project's members. Anyone unmatched is shown as "Name (BugHerd)" and can't sign off. The dry-run lists who matched and flags role conflicts (a BugHerd client who is a developer in pinprompt, or a BugHerd member who is a client).

Timestamps and time zones

API date-times are ISO 8601 in UTC with Z, sometimes with milliseconds (2020-03-24T02:48:35.340Z) (S1, S7). Project created_at has no zone. Silent: the time zone of anything without a zone, and of the CSV export. The importer reads a time without a zone as UTC (never the server's local time) and the dry-run counts such dates. Check one task's created time against BugHerd before the first import.

Deleted and archived tasks

Archived tasks stay available in the board's Archive tab (S6). Deleting is done from the task's "more" menu, including tasks in Feedback and Archive (S6). S1's task_destroy webhook fires when a task is "permanently deleted". Silent: whether deletion can be undone, and whether list endpoints or the export include deleted tasks. Any task with deleted_at (or a "Deleted At" cell) is skipped and counted in the report.

CSV export

To export: project Settings → Export bugs, choose a format and the boards; BugHerd emails the file (S4). Silent: the formats on offer, the column names, the date format and zone, whether archived or deleted tasks are included, and how comments are written. No public sample file exists.

So the column matcher recognises headers in three tiers (matchHeaders in map.ts), first match wins:

  1. 1.API field names, exactly as in S1: local_task_id, id (as the global id, only next to local_task_id), status, status_id, column_id, priority, priority_id, tag_names, requester_email, requester_id, assigned_to_id, created_at, updated_at, closed_at, deleted_at, due_at, site, url, selector_info (a JSON cell), requester_os, requester_browser, requester_browser_size, requester_resolution, screenshot_url, attachments, admin_link, secret_link, external_id, metadata.
  2. 2.BugHerd's own labels, from S5: Task ID, BugHerd ID, Project ID, External ID, Description, Status, Severity, Attachments, URL, Share URL, Task URL, Created At, Due At, Closed At, Deleted At, Tags, Reported By, Reported By ID, Reported By Email, Reported by Display Name, Assigned To, Assigned To ID, Assigned To Email, Assigned Display Name, OS, Browser, Browser Size, Color Depth, Resolution, Custom Data.
  3. 3.Loose aliases for older and hand-edited files (Id, Requester, Priority, Window Size, Selector, Screenshot, Comments, …).

Headers are compared in lower case with everything but letters, digits and # removed, so "Reported By Email", "reported_by_email" and "REPORTED-BY-EMAIL" are the same. A header that matches nothing is not dropped: it is listed under "Columns not used" in Settings → Import and export, its cells are kept on each task (extra), and the dry-run report shows it with a sample value. A known header the file repeats (say "Reported By" next to "Reported by Display Name") is listed as a repeat.

Cells: tags are split on commas, semicolons, pipes and new lines (so a single tag can't contain a comma). Several assignees are comma-separated names with matching emails. Attachments are URLs separated by spaces, commas or new lines, or a JSON array. Custom Data is a JSON object or key: value lines. Comments in one cell are split on lines like Name (2026-09-01 10:02): text or [2026-09-01 10:02] Name: text, or read from a JSON array. That format is our assumption (the export's comment format is undocumented), so check comments in the dry-run's sample before importing.

Files: UTF-8 with or without a BOM; comma, semicolon or tab delimiters; CRLF or LF; quoted fields with doubled quotes and line breaks inside.

Fixtures

packages/core/test/fixtures/bugherd/:

  • export.csv: a 34-row export with BugHerd's labels as headers. It has quoted multiline descriptions, emoji, Japanese, Cyrillic, Arabic, French and German text, comma-separated tags, empty cells, every built-in status plus two custom columns and Archive, members, clients and public or anonymous reporters, several assignees, a deleted task, a row without a description, and an unknown "Time Spent" column.
  • export-api-fields.csv: the same kind of tasks with the API's field names as headers (a JSON selector_info, a status given only by a column id).
  • api/*.json: one response body per endpoint, in the documented shapes: organization, projects, project (with members, guests and columns), users, members, guests, columns, tasks, feedback, archive, task, and tasks/{id}/comments.json and tasks/{id}/attachments.json. Built-in columns have large ids, as in S7.
  • ../bugherd-export.csv: the original hand-made file, kept as the test for the loose fallback (the e2e suite uses it too).

bugherd-mock.ts serves these with real paging (pageSize, meta.count, an empty page past the end), a 429 with or without Retry-After, and 404s for lists an older API lacks.

Dry run

pnpm --filter @pinprompt/core import:bugherd --project halden-coffee --csv ~/Downloads/bugherd.csv --dry-run
BUGHERD_API_KEY=… pnpm --filter @pinprompt/core import:bugherd --project halden-coffee --api 500688 --dry-run [--json]

It writes nothing and prints:

  • counts: new, already imported, skipped;
  • each CSV column: what it feeds and how it was recognised (API name, BugHerd label or close match), the unused ones with a sample value, and important fields that are missing;
  • every BugHerd status (from the API, also columns with no tasks), whether it is built in or a custom column, and where it lands;
  • priorities and what they map to;
  • people: matched to which pinprompt member, or unmatched, with their BugHerd role;
  • warnings: zone-less dates, custom columns, Done handling, deleted tasks, public feedback, people without email, role conflicts, comments without a known author, members-only comments, several assignees, non-image attachments;
  • problems in the file: rows without an id or description, and duplicates.

The API dry run reads the task lists twice (once for the preview, once for the report). That is about two requests per 100 tasks per list, well inside the rate limit.