Reference
Automation
Automation rules: list and search their summaries, read one, switch it on or off, and run a manual rule on tasks or pages.
List and search automation rules
/orgs/{org}/automation/rulesScope: automation:read
Summaries of the rules you may read, as the automation pages list them, by name, cursor paged: organisation admins every rule; a project's or space's rule managers the rules they manage and, read only, the rules that reach it. Search by trigger, state, owner, or the project or space a rule reaches (for someone who manages its rules); Jira's Get and Search rule summaries. Someone who manages no rules gets 404, as the app hides its automation pages.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
Query parameters
limitintegerHow many items a page holds, 1 to 200.
from 1 to 200; default 50
cursorstringThe next_cursor of the previous page; leave it out for the first page.
at most 1000 characters
countstringtrue adds total, the number of items in the whole list.
one of: true, false
productstringOnly projects' or Docs' rules.
one of: projects, docs
projectstringThe rules that reach this project (its key).
1 to 40 characters
spacestringThe rules that reach this Docs space (its key).
1 to 40 characters
statestringOnly rules on, or off.
one of: enabled, disabled
triggerstringOnly rules with this trigger (manual, task_created, …).
matches ^[a-z][a-z0-9_]{1,59}$
ownerstring (uuid)Only rules this person owns (their id).
namestringOnly rules whose name has this.
1 to 255 characters
fieldsstringOnly these fields, comma-separated: id, number, name, product, kind, state, trigger, owner, scope, last_run, can_manage, updated_at. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of AutomationRuleSummaryRequiredShow 12 fields
idstring (uuid)RequirednumberintegerRequiredThe rule's number in the organisation.
namestringRequiredproductstringRequiredone of: projects, docs
kindstringRequiredsystem: a rule a smart button keeps.
one of: rule, system
statestringRequiredone of: enabled, disabled
triggerstringRequiredThe trigger's kind (manual, scheduled, …).
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
scopeRuleScopeRequiredShow 3 fields
kindstringRequiredone of: organisation, one, several, family
familystring or nullRequireditemsarray of objectRequiredThe projects or spaces of a rule over one or several; one you can't open is left out.
Show 4 fields
kindstringRequiredone of: project, space
idstring (uuid)Requiredkeystring or nullRequirednull when it no longer exists.
namestringRequired
last_runobject or nullRequiredShow 2 fields
statusstringRequiredone of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure
atstring (date-time) or nullRequired
can_managebooleanRequiredYou may change it and switch it on or off.
updated_atstring (date-time)RequiredUTC, with Z.
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/automation/rules" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/automation/rules", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/automation/rules",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"number": 12,
"name": "Close the parent when its subtasks are done",
"product": "projects",
"kind": "rule",
"state": "enabled",
"trigger": "task_transitioned",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"scope": {
"kind": "one",
"family": null,
"items": [
{
"kind": "project",
"id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
"key": "WEB",
"name": "Website"
}
]
},
"last_run": {
"status": "success",
"at": "2026-12-01T10:15:00.000Z"
},
"can_manage": true,
"updated_at": "2026-11-28T08:00:00.000Z"
}
],
"next_cursor": null
}Get an automation rule
/orgs/{org}/automation/rules/{rule}Scope: automation:read
One rule you may read, with its trigger, conditions and actions as the rule editor keeps them. A project or space in its scope that you can't open is left out.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
rulestringRequiredThe rule's id, or its number (as the app shows it: Rule 12).
1 to 40 characters
The id comes from List and search automation rules.
Query parameters
fieldsstringOnly these fields, comma-separated: id, number, name, product, kind, state, trigger, owner, scope, last_run, can_manage, updated_at, description, notify_on_error, edit_access, triggered_by, actor, definition, recurring, failing_since, created_at. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequirednumberintegerRequiredThe rule's number in the organisation.
namestringRequiredproductstringRequiredone of: projects, docs
kindstringRequiredsystem: a rule a smart button keeps.
one of: rule, system
statestringRequiredone of: enabled, disabled
triggerstringRequiredThe trigger's kind (manual, scheduled, …).
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
scopeRuleScopeRequiredShow 3 fields
kindstringRequiredone of: organisation, one, several, family
familystring or nullRequireditemsarray of objectRequiredThe projects or spaces of a rule over one or several; one you can't open is left out.
Show 4 fields
kindstringRequiredone of: project, space
idstring (uuid)Requiredkeystring or nullRequirednull when it no longer exists.
namestringRequired
last_runobject or nullRequiredShow 2 fields
statusstringRequiredone of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure
atstring (date-time) or nullRequired
can_managebooleanRequiredYou may change it and switch it on or off.
updated_atstring (date-time)RequiredUTC, with Z.
descriptionstringRequirednotify_on_errorbooleanRequirededit_accessstringRequiredone of: managers, owner
triggered_bystringRequiredone of: people, people_and_rules
actorobjectRequiredWho the rule's actions are done as.
Show 2 fields
kindstringRequiredone of: automation, trigger, person
personPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
definitionobjectRequiredThe trigger, conditions and actions, as the app's rule editor keeps them (Jira: trigger and components).
recurringbooleanRequiredA recurring task's rule (read only in the app).
failing_sincestring (date-time) or nullRequiredcreated_atstring (date-time)RequiredUTC, with Z.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"number": 12,
"name": "Close the parent when its subtasks are done",
"product": "projects",
"kind": "rule",
"state": "enabled",
"trigger": "task_transitioned",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"scope": {
"kind": "one",
"family": null,
"items": [
{
"kind": "project",
"id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
"key": "WEB",
"name": "Website"
}
]
},
"last_run": {
"status": "success",
"at": "2026-12-01T10:15:00.000Z"
},
"can_manage": true,
"updated_at": "2026-11-28T08:00:00.000Z",
"description": "",
"notify_on_error": true,
"edit_access": "managers",
"triggered_by": "people",
"actor": {
"kind": "automation",
"person": null
},
"definition": {
"version": 1,
"trigger": {
"key": "task_transitioned",
"config": {}
},
"steps": []
},
"recurring": false,
"failing_since": null,
"created_at": "2026-11-20T08:00:00.000Z"
}Switch a rule on or off
/orgs/{org}/automation/rules/{rule}Scope: automation:write
Changes the rule's state, as its switch in the app does, for those who manage it (Jira's Update rule state). Switching it on runs the app's check first: a rule with something to fix answers 409 conflict naming each problem. A rule already in that state stays as it is. Each switch is a rule change in the rule's run log. Changing anything else waits for a later release.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
rulestringRequiredThe rule's id, or its number (as the app shows it: Rule 12).
1 to 40 characters
The id comes from List and search automation rules.
Body
statestringRequiredone of: enabled, disabled
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequirednumberintegerRequiredThe rule's number in the organisation.
namestringRequiredproductstringRequiredone of: projects, docs
kindstringRequiredsystem: a rule a smart button keeps.
one of: rule, system
statestringRequiredone of: enabled, disabled
triggerstringRequiredThe trigger's kind (manual, scheduled, …).
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
scopeRuleScopeRequiredShow 3 fields
kindstringRequiredone of: organisation, one, several, family
familystring or nullRequireditemsarray of objectRequiredThe projects or spaces of a rule over one or several; one you can't open is left out.
Show 4 fields
kindstringRequiredone of: project, space
idstring (uuid)Requiredkeystring or nullRequirednull when it no longer exists.
namestringRequired
last_runobject or nullRequiredShow 2 fields
statusstringRequiredone of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure
atstring (date-time) or nullRequired
can_managebooleanRequiredYou may change it and switch it on or off.
updated_atstring (date-time)RequiredUTC, with Z.
descriptionstringRequirednotify_on_errorbooleanRequirededit_accessstringRequiredone of: managers, owner
triggered_bystringRequiredone of: people, people_and_rules
actorobjectRequiredWho the rule's actions are done as.
Show 2 fields
kindstringRequiredone of: automation, trigger, person
personPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
definitionobjectRequiredThe trigger, conditions and actions, as the app's rule editor keeps them (Jira: trigger and components).
recurringbooleanRequiredA recurring task's rule (read only in the app).
failing_sincestring (date-time) or nullRequiredcreated_atstring (date-time)RequiredUTC, with Z.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"state": "enabled"
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"state": "enabled"
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.patch(
"https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"state": "enabled",
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"number": 12,
"name": "Close the parent when its subtasks are done",
"product": "projects",
"kind": "rule",
"state": "enabled",
"trigger": "task_transitioned",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"scope": {
"kind": "one",
"family": null,
"items": [
{
"kind": "project",
"id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a",
"key": "WEB",
"name": "Website"
}
]
},
"last_run": {
"status": "success",
"at": "2026-12-01T10:15:00.000Z"
},
"can_manage": true,
"updated_at": "2026-11-28T08:00:00.000Z",
"description": "",
"notify_on_error": true,
"edit_access": "managers",
"triggered_by": "people",
"actor": {
"kind": "automation",
"person": null
},
"definition": {
"version": 1,
"trigger": {
"key": "task_transitioned",
"config": {}
},
"steps": []
},
"recurring": false,
"failing_since": null,
"created_at": "2026-11-20T08:00:00.000Z"
}List the manual rules you may run on a task
/orgs/{org}/tasks/{task}/manual-rulesScope: automation:read
The manual rules the task view's automation menu offers you on this task (their groups, task types and scope allow you, and they are on), with the questions each asks, in one page (Jira's Search manual rules for an issue).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
taskstringRequiredThe task's id or key (WEB-12).
1 to 60 characters
The id comes from List tasks.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of ManualRuleRequiredShow 4 fields
idstring (uuid)RequirednumberintegerRequirednamestringRequiredinputarray of objectRequiredThe questions the rule asks when it is run (answer them in input).
Show 4 fields
namestringRequiredkindstringRequiredtext, number, date, choice or person.
optionsstringA choice's options, by commas.
requiredboolean
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/manual-rules" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/tasks/{task}/manual-rules", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/tasks/{task}/manual-rules",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"number": 14,
"name": "Escalate to support",
"input": [
{
"name": "Reason",
"kind": "text",
"required": true
}
]
}
],
"next_cursor": null
}List the manual rules you may run on a page
/orgs/{org}/pages/{page}/manual-rulesScope: automation:read
The manual Docs rules a page's Page automations dialog offers you, with the questions each asks, in one page.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredThe id comes from
listPages.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of ManualRuleRequiredShow 4 fields
idstring (uuid)RequirednumberintegerRequirednamestringRequiredinputarray of objectRequiredThe questions the rule asks when it is run (answer them in input).
Show 4 fields
namestringRequiredkindstringRequiredtext, number, date, choice or person.
optionsstringA choice's options, by commas.
requiredboolean
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/manual-rules" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/manual-rules", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/manual-rules",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"number": 14,
"name": "Escalate to support",
"input": [
{
"name": "Reason",
"kind": "text",
"required": true
}
]
}
],
"next_cursor": null
}Run a manual rule
/orgs/{org}/automation/rules/{rule}/invocationScope: automation:write
Runs a manual rule once on each task (a project rule) or page (a Docs rule) given, as choosing it in the app's automation menu does, with its questions answered in input (Jira's Invoke a manual rule). A target the rule isn't offered to you on (you can't open it, the rule is off, out of scope or not for you) answers invalid_target and runs nothing there, as Jira's INVALID_TARGET_OBJECT; a rule you can neither read nor run on any target given is not found (404). Each run is queued (queued) and done by the automation worker in moments. Up to 100 targets; counts one call per 10.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
rulestringRequiredThe rule's id, or its number (as the app shows it: Rule 12).
1 to 40 characters
The id comes from List and search automation rules.
Headers
Idempotency-KeystringA unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422.
1 to 200 characters
Body
tasksarray of stringTasks to run it on: ids or keys.
at most 100 items
pagesarray of string (uuid)Pages to run it on: ids.
at most 100 items
inputobjectThe answers to the rule's questions, by question name: text, a number, a date (YYYY-MM-DD), one of a choice's options, or a person's id.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
resultsarray of objectRequiredShow 4 fields
kindstringRequiredone of: task, page
refstringRequiredThe task's id or key, or the page's id, as given.
statusstringRequiredone of: queued, invalid_target
event_idstring or nullRequiredThe queued run's event (null when not run).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }422
idempotency_key_reusedidempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.{ "error": { "code": "idempotency_key_reused", "message": "The same Idempotency-Key was sent within 24 hours with a different body.", "status": 422, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X POST "https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}/invocation" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tasks": [
"string"
],
"pages": [
"6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
],
"input": {}
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}/invocation", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"tasks": [
"string"
],
"pages": [
"6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
],
"input": {}
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}/invocation",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"tasks": [
"string",
],
"pages": [
"6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
],
"input": {},
},
)
print(res.status_code, res.json())Sample answer 200
{
"results": [
{
"kind": "task",
"ref": "WEB-14",
"status": "queued",
"event_id": "48213"
},
{
"kind": "task",
"ref": "WEB-15",
"status": "invalid_target",
"event_id": null
}
]
}