projqoDevelopers

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

GET/orgs/{org}/automation/rules

Scope: 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

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

Query parameters

  • limitinteger

    How many items a page holds, 1 to 200.

    from 1 to 200; default 50

  • cursorstring

    The next_cursor of the previous page; leave it out for the first page.

    at most 1000 characters

  • countstring

    true adds total, the number of items in the whole list.

    one of: true, false

  • productstring

    Only projects' or Docs' rules.

    one of: projects, docs

  • projectstring

    The rules that reach this project (its key).

    1 to 40 characters

  • spacestring

    The rules that reach this Docs space (its key).

    1 to 40 characters

  • statestring

    Only rules on, or off.

    one of: enabled, disabled

  • triggerstring

    Only rules with this trigger (manual, task_created, …).

    matches ^[a-z][a-z0-9_]{1,59}$

  • ownerstring (uuid)

    Only rules this person owns (their id).

  • namestring

    Only rules whose name has this.

    1 to 255 characters

  • fieldsstring

    Only 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 AutomationRuleSummaryRequired
    Show 12 fields
    • idstring (uuid)Required
    • numberintegerRequired

      The rule's number in the organisation.

    • namestringRequired
    • productstringRequired

      one of: projects, docs

    • kindstringRequired

      system: a rule a smart button keeps.

      one of: rule, system

    • statestringRequired

      one of: enabled, disabled

    • triggerstringRequired

      The trigger's kind (manual, scheduled, …).

    • ownerPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
    • scopeRuleScopeRequired
      Show 3 fields
      • kindstringRequired

        one of: organisation, one, several, family

      • familystring or nullRequired
      • itemsarray of objectRequired

        The projects or spaces of a rule over one or several; one you can't open is left out.

        Show 4 fields
        • kindstringRequired

          one of: project, space

        • idstring (uuid)Required
        • keystring or nullRequired

          null when it no longer exists.

        • namestringRequired
    • last_runobject or nullRequired
      Show 2 fields
      • statusstringRequired

        one of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure

      • atstring (date-time) or nullRequired
    • can_managebooleanRequired

      You may change it and switch it on or off.

    • updated_atstring (date-time)Required

      UTC, with Z.

  • next_cursorstring or nullRequired

    Pass as cursor to read the next page; null on the last page.

  • totalinteger

    The number of items in the whole list, with count=true.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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.
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
curl -X GET "https://projqo.example/api/v1/orgs/{org}/automation/rules" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "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

GET/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

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • rulestringRequired

    The 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

  • fieldsstring

    Only 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)Required
  • numberintegerRequired

    The rule's number in the organisation.

  • namestringRequired
  • productstringRequired

    one of: projects, docs

  • kindstringRequired

    system: a rule a smart button keeps.

    one of: rule, system

  • statestringRequired

    one of: enabled, disabled

  • triggerstringRequired

    The trigger's kind (manual, scheduled, …).

  • ownerPersonRef or nullRequired
    Show 2 fields
    • idstring (uuid)Required
    • namestringRequired
  • scopeRuleScopeRequired
    Show 3 fields
    • kindstringRequired

      one of: organisation, one, several, family

    • familystring or nullRequired
    • itemsarray of objectRequired

      The projects or spaces of a rule over one or several; one you can't open is left out.

      Show 4 fields
      • kindstringRequired

        one of: project, space

      • idstring (uuid)Required
      • keystring or nullRequired

        null when it no longer exists.

      • namestringRequired
  • last_runobject or nullRequired
    Show 2 fields
    • statusstringRequired

      one of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure

    • atstring (date-time) or nullRequired
  • can_managebooleanRequired

    You may change it and switch it on or off.

  • updated_atstring (date-time)Required

    UTC, with Z.

  • descriptionstringRequired
  • notify_on_errorbooleanRequired
  • edit_accessstringRequired

    one of: managers, owner

  • triggered_bystringRequired

    one of: people, people_and_rules

  • actorobjectRequired

    Who the rule's actions are done as.

    Show 2 fields
    • kindstringRequired

      one of: automation, trigger, person

    • personPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
  • definitionobjectRequired

    The trigger, conditions and actions, as the app's rule editor keeps them (Jira: trigger and components).

  • recurringbooleanRequired

    A recurring task's rule (read only in the app).

  • failing_sincestring (date-time) or nullRequired
  • created_atstring (date-time)Required

    UTC, with Z.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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.
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
curl -X GET "https://projqo.example/api/v1/orgs/{org}/automation/rules/{rule}" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "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

PATCH/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

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • rulestringRequired

    The 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

  • statestringRequired

    one of: enabled, disabled

Answer

200 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • idstring (uuid)Required
  • numberintegerRequired

    The rule's number in the organisation.

  • namestringRequired
  • productstringRequired

    one of: projects, docs

  • kindstringRequired

    system: a rule a smart button keeps.

    one of: rule, system

  • statestringRequired

    one of: enabled, disabled

  • triggerstringRequired

    The trigger's kind (manual, scheduled, …).

  • ownerPersonRef or nullRequired
    Show 2 fields
    • idstring (uuid)Required
    • namestringRequired
  • scopeRuleScopeRequired
    Show 3 fields
    • kindstringRequired

      one of: organisation, one, several, family

    • familystring or nullRequired
    • itemsarray of objectRequired

      The projects or spaces of a rule over one or several; one you can't open is left out.

      Show 4 fields
      • kindstringRequired

        one of: project, space

      • idstring (uuid)Required
      • keystring or nullRequired

        null when it no longer exists.

      • namestringRequired
  • last_runobject or nullRequired
    Show 2 fields
    • statusstringRequired

      one of: config_change, success, no_actions, in_progress, queued_for_retry, loop, throttled, some_errors, failure

    • atstring (date-time) or nullRequired
  • can_managebooleanRequired

    You may change it and switch it on or off.

  • updated_atstring (date-time)Required

    UTC, with Z.

  • descriptionstringRequired
  • notify_on_errorbooleanRequired
  • edit_accessstringRequired

    one of: managers, owner

  • triggered_bystringRequired

    one of: people, people_and_rules

  • actorobjectRequired

    Who the rule's actions are done as.

    Show 2 fields
    • kindstringRequired

      one of: automation, trigger, person

    • personPersonRef or nullRequired
      Show 2 fields
      • idstring (uuid)Required
      • namestringRequired
  • definitionobjectRequired

    The trigger, conditions and actions, as the app's rule editor keeps them (Jira: trigger and components).

  • recurringbooleanRequired

    A recurring task's rule (read only in the app).

  • failing_sincestring (date-time) or nullRequired
  • created_atstring (date-time)Required

    UTC, with Z.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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).
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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 conflict conflict: The thing changed since it was read, or the change clashes with its state.
    409 answer
    {
      "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_large too_large: The body or a file is larger than allowed.
    413 answer
    {
      "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_type unsupported_media_type: The body isn't JSON.
    415 answer
    {
      "error": {
        "code": "unsupported_media_type",
        "message": "The body isn't JSON.",
        "status": 415,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 429 rate_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
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"
}'

Sample answer 200

200 OK
{
  "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

GET/orgs/{org}/tasks/{task}/manual-rules

Scope: 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

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • taskstringRequired

    The 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 ManualRuleRequired
    Show 4 fields
    • idstring (uuid)Required
    • numberintegerRequired
    • namestringRequired
    • inputarray of objectRequired

      The questions the rule asks when it is run (answer them in input).

      Show 4 fields
      • namestringRequired
      • kindstringRequired

        text, number, date, choice or person.

      • optionsstring

        A choice's options, by commas.

      • requiredboolean
  • next_cursorstring or nullRequired

    Pass as cursor to read the next page; null on the last page.

  • totalinteger

    The number of items in the whole list, with count=true.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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.
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/manual-rules" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "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

GET/orgs/{org}/pages/{page}/manual-rules

Scope: automation:read

The manual Docs rules a page's Page automations dialog offers you, with the questions each asks, in one page.

Path parameters

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • pagestring (uuid)Required

    The id comes from listPages.

Answer

200 OK

Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

Show the answer's fields
  • itemsarray of ManualRuleRequired
    Show 4 fields
    • idstring (uuid)Required
    • numberintegerRequired
    • namestringRequired
    • inputarray of objectRequired

      The questions the rule asks when it is run (answer them in input).

      Show 4 fields
      • namestringRequired
      • kindstringRequired

        text, number, date, choice or person.

      • optionsstring

        A choice's options, by commas.

      • requiredboolean
  • next_cursorstring or nullRequired

    Pass as cursor to read the next page; null on the last page.

  • totalinteger

    The number of items in the whole list, with count=true.

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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.
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
curl -X GET "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/manual-rules" \
  -H "Authorization: Bearer $PROJQO_TOKEN"

Sample answer 200

200 OK
{
  "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

POST/orgs/{org}/automation/rules/{rule}/invocation

Scope: 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

  • orgstringRequired

    The organisation's id (or its address name).

    1 to 100 characters

    The id comes from List organisations.

  • rulestringRequired

    The 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-Keystring

    A 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 string

    Tasks 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

  • inputobject

    The 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 objectRequired
    Show 4 fields
    • kindstringRequired

      one of: task, page

    • refstringRequired

      The task's id or key, or the page's id, as given.

    • statusstringRequired

      one of: queued, invalid_target

    • event_idstring or nullRequired

      The queued run's event (null when not run).

Errors

  • 400 invalid invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
    400 answer
    {
      "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_token invalid_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).
    401 answer
    {
      "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_scope insufficient_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).
    403 answer
    {
      "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_found not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
    404 answer
    {
      "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_large too_large: The body or a file is larger than allowed.
    413 answer
    {
      "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_type unsupported_media_type: The body isn't JSON.
    415 answer
    {
      "error": {
        "code": "unsupported_media_type",
        "message": "The body isn't JSON.",
        "status": 415,
        "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b"
      }
    }
  • 422 idempotency_key_reused idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
    422 answer
    {
      "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_limited rate_limited: Too many calls in this minute, for the token or for the whole organisation.
    429 answer
    {
      "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 internal internal: Something went wrong on projqo's side (never your mistake).
    500 answer
    {
      "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
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": {}
}'

Sample answer 200

200 OK
{
  "results": [
    {
      "kind": "task",
      "ref": "WEB-14",
      "status": "queued",
      "event_id": "48213"
    },
    {
      "kind": "task",
      "ref": "WEB-15",
      "status": "invalid_target",
      "event_id": null
    }
  ]
}