Integration

Jira tickets as lessons: finished ticket, proposal, approval

When a Jira ticket is done, cachly proposes a lesson from it. An admin approves it. Only then does every AI in the team know the fix.

What does it do?

A Jira rule sends the finished ticket to cachly. cachly drafts a lesson: the problem, the solution and the link to the ticket. An admin approves or discards the proposal. Approved lessons are recalled by Claude Code, Cursor, Copilot and other tools when the same problem comes up again.

How do I set it up?

  1. Open Team → Jira (admins only). Under New connection enter a name, the Brain and the address of your Jira site (your-company.atlassian.net). Up to 10 connections per team.
  2. Copy the secret (it starts with cjh_). It is shown only this once. If you lose it, revoke the connection and create a new one.
  3. Open the Guide for the Jira rule under the connection. It shows the address for the web request and the body template.

How do I build the Jira rule?

Create an automation rule in Jira with three parts:

  • Trigger: Work item transitioned, target status is your done status.
  • Action: Re-fetch work item data. Otherwise the comment written while finishing is missing.
  • Action: Send web request. Method POST, body Custom format, header Content-Type: application/json, and the address shown in the guide. Add the header X-Cachly-Hook-Secret with the secret as its value and mark it Hidden. Whoever copies or exports the rule enters the value again.

As the body, use this template. It holds nine fields:

web request body
{
  "key": {{issue.key.asJsonString}},
  "url": {{issue.url.asJsonString}},
  "summary": {{issue.summary.asJsonString}},
  "description": {{issue.description.asJsonString}},
  "resolution": {{issue.resolution.name.asJsonString}},
  "type": {{issue.issueType.name.asJsonString}},
  "labels": {{issue.labels.asJsonStringArray}},
  "comment": {{issue.comments.last.body.asJsonString}},
  "transition_comment": {{comment.body.asJsonString}}
}

transition_comment is the comment from the done dialog. Jira fills it when your project asks for a comment while finishing (company-managed projects with a transition screen). If it has at least 20 characters, cachly takes it as the solution. Otherwise the last comment on the ticket counts. Rules built with the older eight-field template keep working.

What happens day to day?

  • When finishing a ticket, write in the comment what helped, at least 20 characters. A comment in the done dialog counts first. Without a solution text no proposal is created.
  • A proposal names the problem, the solution and the link to the ticket. The admin approves or discards it.
  • Open proposals expire after 30 days.
  • If the check finds something that looks like a password or key, a warning sits on the proposal.

What does cachly keep?

cachly takes over only the nine fields of the template. Reporter, assignee and other person fields are dropped, even if a rule sends them. Mentions and e-mail addresses in the text are replaced, and a mention becomes [Person]. Names in running text stay: check the proposal before you approve it. Attachments are not transferred.

Frequently asked questions

Does a lesson reach the Brain without approval?

No. Nothing reaches the Brain without a person saying yes. An admin approves or discards each proposal.

When is no proposal created?

When neither the comment from the done dialog nor the last comment on the ticket has at least 20 characters. Without a solution text there is nothing to learn.

No proposal arrives. Where do I see the error?

In Jira open Settings > System > Global automation > Audit log and expand the run. Jira shows the status code and cachly's error text, for example 401 hook_unauthorized when the secret is wrong. The flow list also marks the rule when its last run failed. Jira does not retry a failed request, so close the ticket again after fixing the rule.

How long does a proposal wait?

Open proposals expire after 30 days.

Which ticket data does cachly keep?

Only the nine fields of the template. Reporter, assignee and other person fields are dropped, even if a rule sends them. Mentions and e-mail addresses in the text are replaced (a mention becomes [Person]). Names in running text stay, so check the proposal before you approve it. Attachments are not transferred.

What do I need?

A team organization and a Brain in that team. The Jira page is for admins.

Is Atlassian Rovo involved?

No. The rule is a normal Jira automation rule with a web request. You can run Atlassian's own MCP server next to cachly; that is a separate setup.

More: cachly + Atlassian MCP · Company knowledge · Company rules · All docs