Jira
Create, update, move (transition) and search Jira Cloud issues, and add comments.
| Slug | jira |
| Base URL | https://{site|subdomain}.atlassian.net/rest/api/3 |
| Auth options | Email and API token |
| Test connection | GET /myself |
1. Create an API token
- Sign in to id.atlassian.com/manage-profile/security/api-tokens.
- 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
- In Blokkio, go to Apps and open Jira.
- Click Connect and fill in:
- Site: your Jira site, for example
acmeforacme.atlassian.net. Pastingacme.atlassian.netor a Jira URL works too. - Email: the email of your Atlassian account.
- API token: the token (or Use secret).
- Site: your Jira site, for example
- 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 (
OPSforOPS-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).
| Action | Key | What it does | Inputs (required) |
|---|---|---|---|
| Search issues (JQL) | search_issues | Issues matching a JQL query (all pages). | JQL, Fields |
| Get issue | get_issue | Issue key, Fields | |
| Create issue | create_issue | Other fields, Project key, Issue type, Summary, Description, Labels, Priority, Assignee account ID, Due date, Parent issue key | |
| Update issue | update_issue | Only the fields you fill change. | Issue key, Other fields, Summary, Description, Labels, Priority, Assignee account ID, Due date |
| List transitions | list_transitions | The status changes available for an issue now, with their ids. | Issue key |
| Transition issue | transition_issue | Moves an issue to another status (e.g. In Progress → Done). | Issue key, Transition ID, Resolution |
| Add comment | add_comment | Issue key, Comment | |
| List comments | list_comments | Issue key, How many | |
| List projects | list_projects | Search | |
| Find users | find_users | Look 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 }}).
| Trigger | Key | What starts a run | Inputs (required) | Output |
|---|---|---|---|---|
| New issue | new_issue | Issues created in a project (JQL created >= -1d ORDER BY created DESC). | Project key | id, key, fields.summary, fields.status, fields.assignee, fields.created |
Troubleshooting
| Message | What to do |
|---|---|
HTTP 401 | Wrong email or API token, or the token expired. Create a new token. |
HTTP 400 … Unbounded JQL queries are not allowed | Add a condition such as project = OPS to the JQL. |
HTTP 400 … Field 'x' cannot be set | The field isn't on the project's create/edit screen. Ask your Jira admin, or leave it empty. |
HTTP 400 … Transition id is not valid | Run List transitions: the available transitions depend on the current status. |
| the field 'site' doesn't look right | Enter only the site name, for example acme. |