Skip to main content

Jira

Create, update, move (transition) and search Jira Cloud issues, and add comments.

Slugjira
Base URLhttps://{site|subdomain}.atlassian.net/rest/api/3
Auth optionsEmail and API token
Test connectionGET /myself

1. Create an API token​

  1. Sign in to id.atlassian.com/manage-profile/security/api-tokens.
  2. Click Create API token (not with scopes), name it (Blokkio), choose an expiry and copy it.

The token acts as you: Blokkio can see and change what your Jira account can. Tokens expire (1 to 365 days); when yours does, create a new one and update the connection.

2. Create the connection​

  1. In Blokkio, go to Apps and open Jira.
  2. Click Connect and fill in:
    • Site: your Jira site, for example acme for acme.atlassian.net. Pasting acme.atlassian.net or a Jira URL works too.
    • Email: the email of your Atlassian account.
    • API token: the token (or Use secret).
  3. Test connection calls GET /rest/api/3/myself.

Searching with JQL​

Search issues takes a JQL query. Jira requires it to be bounded: include a condition, for example project = OPS AND status != Done ORDER BY created DESC. Fields chooses what each issue includes (default: summary, status, assignee, priority, type, dates…; *all for everything). Newly created issues can take a few seconds to show up in search.

Creating and updating issues​

  • Project key is the prefix of the issue keys (OPS for OPS-12). Issue type is the name used in the project: Task, Bug, Story…
  • Description and comments are plain text; Blokkio sends them as Jira's rich-text format.
  • Assignee account ID: use Find users to get it from a name or email.
  • Other fields sets anything else as JSON, including custom fields by id: { "customfield_10016": 5, "components": [{ "name": "API" }] }.

Moving an issue to another status​

Statuses change through transitions. Run List transitions for the issue to see which are available and their ids (for example 31 = Done), then Transition issue with that id.

Actions​

Use them with the App Action node. Lists return { items, count }; actions that read every page return { items, pages } (turn off Fetch all pages or lower Max pages in the node to read less).

ActionKeyWhat it doesInputs (required)
Search issues (JQL)search_issuesIssues matching a JQL query (all pages).JQL, Fields
Get issueget_issueIssue key, Fields
Create issuecreate_issueOther fields, Project key, Issue type, Summary, Description, Labels, Priority, Assignee account ID, Due date, Parent issue key
Update issueupdate_issueOnly the fields you fill change.Issue key, Other fields, Summary, Description, Labels, Priority, Assignee account ID, Due date
List transitionslist_transitionsThe status changes available for an issue now, with their ids.Issue key
Transition issuetransition_issueMoves an issue to another status (e.g. In Progress → Done).Issue key, Transition ID, Resolution
Add commentadd_commentIssue key, Comment
List commentslist_commentsIssue key, How many
List projectslist_projectsSearch
Find usersfind_usersLook up account ids by name or email (for Assignee).Name or email

Triggers​

Use them with the App Trigger node. A trigger checks the app at its polling interval (the shortest allowed depends on your plan, see Plans and limits) and starts one run per new item, oldest first. The first check after you publish only records what already exists, so only items created after that start runs. Each run gets the item as $trigger (for example {{ $trigger.id }}).

TriggerKeyWhat starts a runInputs (required)Output
New issuenew_issueIssues created in a project (JQL created >= -1d ORDER BY created DESC).Project keyid, key, fields.summary, fields.status, fields.assignee, fields.created

Troubleshooting​

MessageWhat to do
HTTP 401Wrong email or API token, or the token expired. Create a new token.
HTTP 400 … Unbounded JQL queries are not allowedAdd a condition such as project = OPS to the JQL.
HTTP 400 … Field 'x' cannot be setThe field isn't on the project's create/edit screen. Ask your Jira admin, or leave it empty.
HTTP 400 … Transition id is not validRun List transitions: the available transitions depend on the current status.
the field 'site' doesn't look rightEnter only the site name, for example acme.