Manage workflows with the API
Use the Discord for Jira API to read and update workflows your Jira site owns. Open the endpoint reference for request parameters, response fields and examples. Make your first request to create a Read key and find the connection you want to use.
Choose key access
| Access | Operations |
|---|---|
| Read | Discover connected resources, read saved workflow configuration and inspect health. |
| Manage | Read and modify workflows, change their enabled state, and publish panels. |
Send the key as a bearer token over HTTPS. Use the base URL shown on the API page for the environment you are calling. To issue, replace or revoke a key, follow the first request guide.
Server, site, and project
- Call
GET /api/v1/serversto discover available connected Discord servers. Use the returnedserverIdin collection requests.guildIdidentifies the server in Discord. - A project API key already selects its Jira project. Use the current Jira project key if you include
projectKeyexplicitly. For a site key, useprojectKeyto list or create project-owned workflows. Omit it for site-owned workflows. - Jira checks the issuer's current administrator permissions. Site-owned workflows require Jira global administration. Project-owned workflows use Jira project administration or Jira global administration.
- Call
GET /api/v1/resourceswithserverIdand a discoverykind. Useprojectsfor connected Jira projects andnotificationChoices,summaryChoices,panelChoicesorautomationChoicesfor choices from the corresponding settings. UseissueTypes,issueFields,memberFieldsandprivateThreadChannelswhen configuring named forms. Send Jira’sprojectIdforissueTypesandissueFields, and addissueTypeIdforissueFields. - When a project integration is disabled on a server, you can still read its saved workflows. Re-enable the integration in Jira settings before editing them.
- ServerRead the connected servers and choose a serverId.
- ScopeChoose a Jira project or the site scope.
- WorkflowCall the resource collection or use the ID for one saved workflow.
Manage workflows
| Workflow | Collection path |
|---|---|
| Notification rules | /api/v1/notification-rules |
| Scheduled summaries | /api/v1/scheduled-summaries |
| Issue lists | /api/v1/issue-lists |
| Forms | /api/v1/forms |
| Panels | /api/v1/panels |
| Automations | /api/v1/automations |
For a scheduled summary, set the Jira issue source, filters and sort order in draft.selection. Use draft.selection.query for field filters and optional JQL.
For an issue list, set definition.sharing.mode to private, post or refresh. Shared copies go to the channel where the person opened the list. Update API requests to omit any previous sharing destination.
For a new automation, set definition.actor to {"kind":"app"} to use Discord for Jira's Jira permissions for writes. The settings service records the authorizer automatically for Discord events that have no author. An authorizedBy value returned for those rules is managed by the service. Rules can use Jira data as input only when the appropriate person has access to read it.
Send GET to a collection to list workflows or POST to create one. Both use serverId. Each saved workflow returns its stable id.
Append /{id} to the collection path for one workflow. Read it with GET, replace its editable configuration with PUT, or remove it with DELETE. Item requests use the server and Jira site or project already saved for that workflow. You can include serverId and projectKey to check that they match your intended target.
For workflows with an On/Off state, send PATCH /{id}/enabled under the collection path with {"enabled": true} or {"enabled": false}. Complete any required settings before enabling a workflow.
Use a workflow's revision when the operation accepts it. A 409 from a stale revision means you should read the current workflow before retrying. The OpenAPI document lists the exact methods, schemas and required key access.
Publish a panel
Save the panel draft and note its id and revision. Send POST /api/v1/panels/{id}/publish with a Manage key and the current revision. Publishing again updates the recorded Discord message when the destination stays the same. Check the returned published revision, destination and message.
Check delivery and runs
Append /{id}/health to a collection path. The latest attempt can differ from the latest successful run. A null value means that Discord for Jira has no retained record of that outcome. Panel health shows the recorded Discord publication. Check the message in Discord to confirm it is still available.
A health request checks Jira access and returns the result the app already recorded.
Handle failed requests
Each key has an allowance of 120 requests per minute. When it reaches that limit, wait the number of seconds in the Retry-After header before trying again.
| Response | What to check |
|---|---|
400 or 422 |
Correct the request or incomplete configuration. When present, the issues paths point to the fields to change. |
401 |
Check the bearer key and whether it was revoked. |
403 |
Check Read or Manage access, the key's project binding and the issuer's current Jira permissions. |
404 |
Check the saved workflow ID and the selected Jira project or Discord server. |
409 |
Re-read the latest saved revision or resolve the dependency in the response. |
429 |
Wait for Retry-After before trying again. |
5xx |
Read the saved workflow or recorded panel publication before retrying a create or publish whose result is uncertain. |
Discord for Jira