diff --git a/docs/guides/all/automatically-resolve-tickets-with-coding-agents.md b/docs/guides/all/automatically-resolve-tickets-with-coding-agents.md
new file mode 100644
index 0000000000..eef25d7dfc
--- /dev/null
+++ b/docs/guides/all/automatically-resolve-tickets-with-coding-agents.md
@@ -0,0 +1,354 @@
+---
+displayed_sidebar: null
+description: Learn how to create an AI agent that automatically generates GitHub issues from Jira tickets, assigns them to Copilot and link pull requests back to Jira.
+---
+
+import GithubActionModificationHint from '/docs/guides/templates/github/_github_action_modification_required_hint.mdx'
+
+# Automatically resolve tickets with coding agents
+
+Coding agents can significantly speed up development, but crucial engineering context often gets lost in the process.
+This guide demonstrates how to create an AI agent that not only automates the generation of GitHub issues from Jira tickets but also ensures that important context is preserved by assigning them to GitHub Copilot and linking pull requests back to Jira.
+This setup will help us establish a seamless ticket-to-PR workflow, bridging the gap between Jira and GitHub.
+
+
+
+
+## Common use cases
+
+- **Auto-create PRs for bug fixes** to minimize manual work.
+- **Integrate with Copilot** for teams not relying on GitHub Issues.
+- **Link Jira tickets to PRs** to improve cross-platform collaboration.
+- **Generate GitHub issues from Jira** for faster prototyping.
+
+
+## Prerequisites
+
+This guide assumes the following:
+- You have a Port account and have completed the [onboarding process](https://docs.port.io/getting-started/overview).
+- [Port's GitHub app](https://docs.port.io/build-your-software-catalog/sync-data-to-catalog/git/github/) is installed in your account.
+- [Port's Jira integration](https://docs.port.io/build-your-software-catalog/sync-data-to-catalog/project-management/jira/) is installed in your account.
+- You have access to [create and configure AI agents](https://docs.port.io/ai-agents/overview#getting-started-with-ai-agents) in Port.
+- You have completed the setup in the [Trigger GitHub Copilot from Port guide](https://docs.port.io/guides/all/trigger-github-copilot-from-port), ensuring that Copilot will be automatically assigned to any GitHub issues created through this guide.
+
+
+:::tip Alternative integrations and/or coding agents
+While this guide uses GitHub and Jira, you can adapt it for other Git providers like GitLab or Azure DevOps, and other project management tools like Linear. Additionally, although this guide demonstrates using GitHub Copilot, you can also use other coding agents like Claude Code, Devin, etc., to achieve similar automation and integration.
+:::
+
+
+## Set up data model
+
+We will configure the necessary blueprints to support our AI-enhanced coding workflow. This involves updating the Jira issue blueprint with necessary relations.
+
+
+### Update Jira issue blueprint
+
+When you install Port's Jira integration, the Jira project and issue blueprints are created by default. However, we need to update the Jira issue blueprint to add the pull request relation and create a mirror property for the PR link.
+
+1. Go to the [builder](https://app.getport.io/settings/data-model) page of your portal.
+2. Find and select your existing Jira issue blueprint (e.g., `jiraIssue`).
+3. Click on `{...} Edit JSON`.
+4. Add the following relation to the `relations` section:
+
+
Pull request relation (Click to expand)
+
+ ```json showLineNumbers
+ "pull_request": {
+ "target": "githubPullRequest",
+ "required": false,
+ "many": false
+ }
+ ```
+ Pull request link mirror property (Click to expand)
+
+ ```json showLineNumbers
+ "pull_request_link": {
+ "title": "Pull Request Link",
+ "path": "pull_request.link"
+ }
+ ```
+ Pull request mapping (Click to expand)
+
+ ```yaml showLineNumbers
+ - kind: pull-request
+ selector:
+ query: ((.title // "") | test("[A-Z]+-[0-9]+")) and (.user.login == "Copilot")
+ port:
+ entity:
+ mappings:
+ identifier: (.title // "") | match("[A-Z]+-[0-9]+").string
+ blueprint: '"jiraIssue"'
+ properties: {}
+ relations:
+ pull_request: .id|tostring
+ ```
+ GitHub issue creation AI agent configuration (Click to expand)
+
+ ```json showLineNumbers
+ {
+ "identifier": "github_issue_creation",
+ "title": "Github Issue Creation",
+ "icon": "Details",
+ "team": [],
+ "properties": {
+ "description": "Creates Github issues from Jira tickets",
+ "status": "active",
+ "allowed_blueprints": [
+ "service",
+ "githubIssue",
+ "githubRepository",
+ "_user",
+ "_team"
+ ],
+ "allowed_actions": [
+ "create_github_issue"
+ ],
+ "prompt": "Create a GitHub issue that builds on the context of a linked Jira ticket.\n\nThe GitHub issue should:\n1.\tSummarize and clearly explain the task, using the Jira description as a base.\n2.\tAugment the description with relevant insights from the repository ā such as the README, setup or contribution instructions, existing issues, or implementation notes ā to make the issue fully self-contained.\n3.\tThe **issue title MUST start with the Jira ticket key**, using the format: `Create GitHub issue from Jira automation (Click to expand)
+
+ ```json showLineNumbers
+ {
+ "identifier": "create_github_issue_from_jira",
+ "title": "Create a Github Issue from Jira Ticket",
+ "description": "When Jira issue moves to In Progress with Copilot label, create a Github issue",
+ "icon": "Github",
+ "trigger": {
+ "type": "automation",
+ "event": {
+ "type": "ENTITY_UPDATED",
+ "blueprintIdentifier": "jiraIssue"
+ },
+ "condition": {
+ "type": "JQ",
+ "expressions": [
+ ".diff.after.properties.status == \"In Progress\"",
+ ".diff.before.properties.status == \"To Do\"",
+ "(.diff.after.properties.labels | index(\"copilot\")) != null"
+ ],
+ "combinator": "and"
+ }
+ },
+ "invocationMethod": {
+ "type": "WEBHOOK",
+ "url": "https://api.getport.io/v1/agent/github_issue_creation/invoke",
+ "agent": false,
+ "synchronized": true,
+ "method": "POST",
+ "headers": {
+ "RUN_ID": "{{ .run.id }}",
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "prompt": "Jira Task title: \"{{.event.diff.after.title}}\"\n. Jira Task identifier: \"{{.event.diff.after.identifier}}\"\n Jira Task description: \"{{.event.diff.after.properties.description}}\"\nRepository:{{.event.diff.after.relations.repository}}.",
+ "labels": {
+ "source": "create_github_issue_automation",
+ "jira_issue_id": "{{ .event.diff.after.identifier }}"
+ }
+ }
+ },
+ "publish": true
+ }
+ ```
+ Add PR link to Jira issue automation (Click to expand)
+
+ :::tip Atlassian domain replacement
+ Remember to replace `