Jira
File Jira tickets for issues, move them as the fix progresses, and keep their status in sync both ways.
Mendloop files a Jira ticket for an issue when you ask (or when an approved workflow does), puts a link back to the issue in the ticket, moves the ticket as the fix progresses, and keeps the ticket's status on the issue page.
Nothing is written to Jira until you connect it in live mode and press Create on an issue. In test mode, tickets are simulated unless you choose a Jira project for test tickets.
What you need#
Jira Cloud (*.atlassian.net) |
Jira Data Center / Server | |
|---|---|---|
| Token | API token from id.atlassian.com → Security → API tokens | Personal access token from your Jira profile |
| Also paste | Site URL and the email you sign in with | Site URL |
The account needs these project permissions: Browse projects, Create issues, Edit issues, Transition issues, Add comments, Assign issues. Your own account is fine for a first test.
1. Create an API token#
- Sign in to Atlassian as the account Mendloop should use, then open id.atlassian.com → Security → API tokens.
- Choose Create API token, name it
Mendloop, pick an expiry, and Create. - Copy the token. Atlassian shows it only once.
The token acts as that account. Mendloop stores it encrypted with your organization's key. It is never shown again, never written to a log, and never sent to a model.
Use a throwaway project for the first test (for example Mendloop Test, key MT), so test tickets don't
land in your team's backlog.
2. Connect#
- Switch to Production (live mode) at the top right. Test-mode connections are separate.
- Go to Integrations, find Jira under Tickets, and choose Connect.
- Fill in the Jira address (
acme.atlassian.net; pasting the full browser URL also works), the email you sign in to Atlassian with, and the API token. Leave Webhook secret empty for now. - Choose Connect and verify.
3. Read the checklist#
| Check | What it means when it fails |
|---|---|
| Credentials are valid | "Jira didn't accept this email and API token." Check the email, or create a new token. |
| Permissions: browse, create, transition, comment | For example "This token can't create issues in MT." Give the account a project role that can. |
| Read the project, issue types and fields | "Project MT doesn't exist, or this account can't see it." Check the key and access. |
| Required fields have a mapping | The project requires a field Mendloop doesn't fill (for example a Team field). Fill it in the mapping. |
| Dry-run create | Mendloop builds the exact ticket it would send and validates it. Nothing is created. |
| Webhook delivery received | Waits for Jira's first webhook. Choose Skip for now if you have no public URL. |
When every check has passed or been skipped, choose Continue to mapping.
4. Map projects#
For each Mendloop project, pick the Jira project its tickets go to ("No tickets" means it never files into
Jira) and the issue type (Bug by default). Then the fields:
- Priority by severity: P0 → Highest … P4 → Lowest by default.
- Assignee: the issue's owner (matched to a Jira account by email), or unassigned.
- Labels:
mendloop, {{severity}}by default. Mendloop also adds amendloop-fp-…label it uses to find an existing open ticket instead of filing a duplicate. - Required fields: if the project requires extra fields, they appear here.
- Move the ticket: which Jira status to use when a fix starts, when the pull request is open and when it merges.
Choose Save and check again, then Finish. You can change the mapping later under Integrations → Jira → Project mapping.
5. Create a ticket from an issue#
- Open a live-mode issue.
- Choose Create Jira ticket. A dialog shows exactly what will be sent: project, type, summary, priority, labels, assignee and description. Nothing is sent yet.
- Choose Create in MT. The ticket key and status (for example
MT-1 · To Do) appear in the issue's header, linked to Jira. - Open the ticket menu (the button with the key) to move it (In Progress, In Review, Done) or add a comment.
Pressing Create again for the same issue links the open ticket instead of filing a second one. In Jira, the ticket has the summary, a description with impact and environment, the labels, and a Mendloop link back to the issue.
6. Keep status in sync#
- Polling works everywhere: every 60 seconds, linked tickets that aren't done are refreshed. Moving the ticket to Done in Jira resolves the Mendloop issue; reopening it reopens the issue. Polling pauses while webhooks are arriving.
- A webhook is instant. In Jira, Settings → System → WebHooks → Create a WebHook, paste the connection's webhook URL, tick Issue: updated, deleted and Comment: created, and optionally set a secret (16+ characters). If you set one, enter the same secret in Mendloop under Integrations → Jira → Settings → Rotate credentials. Creating system webhooks needs Jira admin rights; without them, polling is enough.
Troubleshooting#
| You see | Do this |
|---|---|
| "Jira didn't accept this email and API token." | Use the Atlassian login email, not an alias. Create a new token (they expire). |
| "This token can't create issues in MT." (or move, or comment) | Project settings → Permissions (company-managed) or Access (team-managed): give the account a role such as Member. |
| "Project MT doesn't exist, or this account can't see it." | The key is the ticket prefix (MT in MT-1). Check that the account can open the project. |
| "Required field … has no value" | Fill that field under Required in MT in the mapping, then check again. |
| "Couldn't reach Jira" | Check the address (acme.atlassian.net) and that the server is online. |
| "No project is set for new tickets." | Map the issue's Mendloop project to a Jira project. |
| "This project has no default tracker." | Save the mapping again; it sets Jira as the tracker for each mapped project. |
| No Create Jira ticket button | You're a Viewer, or no tracker is connected in this mode (live and test are separate). |
| Labels or assignee missing on the ticket | The project's create screen doesn't have those fields; Mendloop leaves them out instead of failing. |
| Status doesn't update | Without a webhook, wait up to a minute. The worker must be running. |