Sandbox
Issues API
Create an issue
Issues should be created initially with the “Needs triage” label.
await fetch('http://localhost:8000/api/create-issue', { method: 'POST', headers: { 'content-type': 'application/json', }, body: { title: 'Test title', description: 'Description of the issue', context: '/components/button', volunteer: true, severity: 'medium', type: 'issue', // one of: issue, component, pattern author: { name: 'Chase McCoy', email: 'chase@sproutsocial.com' } },})
Get issue details
await fetch('http://localhost:8000/api/get-issue', { method: 'GET', headers: { 'content-type': 'application/json', }, body: { id: 649, },})
Get all issues
- Filter by context (optional)
await fetch('http://localhost:8000/api/get-issues', { method: 'GET', headers: { 'content-type': 'application/json', }, body: { context: '/components/button', },})