Skip to content

Test and connect Jira Cloud, or change the connection

PUT
/v1/projects/{id}/integrations/jira
curl --request PUT \
--url https://beta-api.plune.ai/v1/projects/example/integrations/jira \
--header 'Content-Type: application/json' \
--cookie plune_session=<plune_session> \
--data '{ "site": "acme.atlassian.net", "tokenKind": "scoped", "email": "[email protected]", "token": "ATATT_EXAMPLE_not_a_real_jira_token_000000000000" }'

Owner only. Runs the two checks of POST …/test with what was sent, and saves the connection only if both passed — the token encrypted with the server’s key, bound to this project, never returned — answering with what GET shows. A check that failed saves nothing and answers 422 with the checks. Left out of an edit of the same site, token is the saved one — unless Jira rejected it, which only a new token replaces. A Disconnect or another save landing while the checks ran is not overwritten: the answer is 409 and nothing is saved. Recorded in the audit feed of the project as a jira_connection entry, the token masked and the e-mail left out. At most 10 checks a minute for a project, this and POST …/test together, counted after the role. Needs a tier with issue trackers (Personal and up). Session cookie only.

id
required
string

An id from GET /v1/projects

Media type application/json

A Jira Cloud site and an Atlassian API token (ADR 0072 §1). A field this API does not know is refused, and no refusal quotes a value.

object
site
required

Your Jira Cloud site: acme.atlassian.net, or an address on it (https://acme.atlassian.net/jira/…) — the host is kept, lower-cased. A custom domain is not supported yet.

string
<= 300 characters
tokenKind
required

scoped — a token with scopes (read: read:jira-work), asked through api.atlassian.com/ex/jira/{cloudId}; classic — a token without scopes, asked at the site. Plune does not guess: each rejected try brings Jira’s CAPTCHA nearer.

string
Allowed values: scoped classic
email
required

The e-mail of the Atlassian account the token belongs to.

string
<= 254 characters
token

Write-only: the API token. Stored encrypted, bound to the project, and in no response, no log and no error message. Required for a new connection and after Disconnect; left out of an edit of the same site, the saved one is kept.

string
>= 1 characters <= 1024 characters
Example
{
"site": "acme.atlassian.net",
"tokenKind": "scoped",
"email": "[email protected]",
"token": "ATATT_EXAMPLE_not_a_real_jira_token_000000000000"
}

Connected — the same body as GET

Media type application/json
object
connection
required

null when no Jira was ever connected.

object
site
required
string
tokenKind
required
string
Allowed values: scoped classic
state
required

working; rejected — Jira answered 401: a new token is needed, and Plune does not send this one again; ip_blocked — Jira’s IP allowlist refused Plune; error — another failure, stateReason says which; paused — the project’s tier does not include issue trackers (Free, an expired tier or one switched off) while the operator enforces the tier limits: nothing is asked of Jira and nothing is lost; no_token — disconnected: the settings stay, a token connects it again (a disconnected connection reads no_token, never paused).

string
Allowed values: working rejected ip_blocked error paused no_token
stateReason
required

The code of the last failure when state is rejected, ip_blocked or error; null otherwise.

string
nullable
checkedAt
required

When the saved connection was last checked: the save itself, or POST …/test.

string format: date-time
nullable
lastReadAt
required

When Jira last answered a read — what Plune holds of Jira is as of this time.

string format: date-time
nullable
connectedBy
required

userId of the owner who connected it, or last changed it.

string
connectedAt
required
string format: date-time
disconnectedBy
required

userId of the owner who disconnected it; null while connected.

string
nullable
disconnectedAt
required
string format: date-time
nullable
email

Owner only: the e-mail of the Atlassian account.

string
outboundAddresses
required

The addresses Plune calls Jira from, for a Jira that takes requests from an allowlist only (ADR 0072 §9). A change of them is announced 14 days ahead. Empty when the server names none.

Array<string>
paidOnly
required

true exactly when PUT would be refused now for the tier (403, issue_trackers: TIER_LIMITS_ENFORCE=true and a tier without issue trackers — Free, an expired tier or one switched off); worked out as paused is. Unlike paused it says so with nothing connected and after Disconnect. Always false in report mode.

boolean
Example
{
"connection": {
"site": "acme.atlassian.net",
"tokenKind": "scoped",
"state": "working",
"stateReason": null,
"checkedAt": "2026-09-16T09:12:04.151Z",
"lastReadAt": "2026-09-16T09:12:04.151Z",
"connectedBy": "u-shop",
"connectedAt": "2026-09-16T09:12:04.151Z",
"disconnectedBy": null,
"disconnectedAt": null,
"email": "[email protected]"
},
"outboundAddresses": [
"203.0.113.7"
],
"paidOnly": false
}

Invalid body, a site that is not <name>.atlassian.net, or no token where none can be used for the site (none saved, Jira rejected the saved one, or it does not open under this server’s key); the message names the field and never a value. Nothing was sent to Jira

Media type application/json
object
error
required
string
Examples

No token, and none saved for this site that can be used

{
"error": "validation failed — token: is required — no token is saved for this site, Jira rejected the saved one, or this server cannot read it"
}

No / invalid session — a CLI token is refused here

You are in the project, but not as its owner; or (only once the operator sets TIER_LIMITS_ENFORCE=true) a tier without the issue_trackers permission, answered in English then Ukrainian, naming the feature, with feature and tier

Media type application/json
object
error
required
string
Example
{
"error": "project owner only"
}

No such project among yours

Media type application/json
object
error
required
string
Example
{
"error": "project 'u-shop::default' not found"
}

The checks passed, but the connection changed while they ran — a Disconnect, another save, or another first connect; nothing was saved: try again

Media type application/json
object
error
required
string
Example
{
"error": "the connection changed while it was being checked — try again"
}

A check failed; nothing was saved. The body is the check, as POST …/test answers it, with error. A failed check carries one of these codes and Plune’s own sentence in message — never what Jira wrote: ip_blocked — Jira’s IP allowlist refused Plune: add the addresses of outboundAddresses to it (its sentence read in the body of an error answer, whatever its status; a 2xx that quotes it is an answer); rejected — a 401: the token is mistyped, expired or revoked, or the other kind of token was chosen; forbidden — a 403; unavailable — a 404: no site there, or no API for this kind of token; busy — a 429: Jira asks Plune to slow down, retryAfterSec when it said how long; invalid — another 4xx, or an answer Plune cannot read; unreachable — a 5xx, the network or the 15 s deadline; redirect — Jira sent Plune elsewhere, which Plune does not follow; too_large — an answer over 1 MB; no_permission — the token reads, but the account may not browse projects.

Media type application/json
object
ok
required
boolean
steps
required
Array<object>
object
step
required
string
Allowed values: site token
result
required
string
Allowed values: ok failed skipped
code

Present exactly when result is failed.

string
Allowed values: ip_blocked rejected forbidden unavailable busy invalid unreachable redirect too_large no_permission
message

Present exactly when result is failed: Plune’s sentence for the page. Never what Jira wrote.

string
retryAfterSec

busy only: the seconds Jira asked to wait, when it said.

integer
testedAt
required
string format: date-time
error
required
string
Example
{
"error": "the connection did not pass its checks — nothing was saved",
"ok": false,
"steps": [
{
"step": "site",
"result": "ok"
},
{
"step": "token",
"result": "failed",
"code": "rejected",
"message": "Jira rejected the token, or the wrong kind of token was chosen - check the token and whether it is a token with scopes."
}
],
"testedAt": "2026-09-16T09:12:04.151Z"
}

More than 60 saves a minute from you, or more than 10 checks a minute for this project. Retry-After carries the seconds until the window rolls over

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over

The server has no key to keep tokens under; nothing is saved

Media type application/json
object
error
required
string
Example
{
"error": "Jira is not configured on this server — contact your operator"
}