{
  "key": "com.go2group.jira.plugin.crm",
  "baseUrl": "https://crm.goldfingerholdings.onl",
  "name": "Plum CRM",
  "version": "2024.06.13",
  "enableLicensing": true,
  "vendor": {
    "name": "GoldFingerHoldings, LLC",
    "url": "https://www.goldfingerholdings.com"
  },
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled",
    "enabled": "/enabled",
    "disabled": "/disabled"
  },
  "apiMigrations": {
    "context-qsh": true,
    "gdpr": true,
    "signed-install": true
  },
  "modules": {
    "dialogs": [
      {
        "url": "link-to-existing-dialog?recordid={issue.key}",
        "options": {
          "height": "400px",
          "width": "700px",
          "header": {
            "value": "Link to existing crm record"
          },
          "chrome": true
        },
        "key": "link-to-existing-dialog"
      },
      {
        "url": "details?recordid={issue.key}",
        "options": {
          "height": "400px",
          "width": "700px",
          "header": {
            "value": "Execution Results"
          },
          "chrome": true
        },
        "key": "execution-dialog"
      }
    ],
    "jiraEntityProperties": [
      {
        "key": "jira-issue-crm-indexing",
        "name": {
          "value": "CRM index",
          "i18n": "crm.index"
        },
        "entityType": "issue",
        "keyConfigurations": [
          {
            "propertyKey": "crm",
            "extractions": [
              {
                "objectName": "case",
                "type": "number"
              },
              {
                "objectName": "case-text",
                "type": "text"
              },
              {
                "objectName": "account",
                "type": "text"
              },
              {
                "objectName": "contact",
                "type": "text"
              },
              {
                "objectName": "opportunity",
                "type": "text"
              }
            ]
          }
        ]
      }
    ],
    "webhooks": [
      {
        "event": "jira:issue_created",
        "url": "/issue-created?sync-comments=true&sync-attachments=true"
      },
      {
        "event": "jira:issue_updated",
        "url": "/issue-updated?sync-comments=false&sync-attachments=false"
      },
      {
        "event": "jira:issue_deleted",
        "url": "/issue-deleted"
      },
      {
        "event": "comment_created",
        "url": "/rest/api/1/comments/created"
      },
      {
        "event": "comment_updated",
        "url": "/rest/api/1/comments/updated"
      },
      {
        "event": "comment_deleted",
        "url": "/rest/api/1/comments/deleted"
      },
      {
        "event": "attachment_created",
        "url": "/rest/api/1/attachment/created/{issue.key}/{attachment.id}"
      },
      {
        "event": "attachment_deleted",
        "url": "/rest/api/1/attachment/deleted/{issue.key}/{attachment.id}"
      }
    ],
    "configurePage": {
      "url": "/app",
      "key": "app-config",
      "name": {
        "value": "CRM Configuration"
      },
      "conditions": [
        {
          "condition": "user_is_admin"
        }
      ]
    },
    "webSections": [
      {
        "location": "admin_plugins_menu",
        "name": {
          "value": "Plum CRM"
        },
        "key": "gfh-crm-app-config"
      }
    ],
    "adminPages": [
      {
        "key": "app-config-page",
        "location": "admin_plugins_menu/gfh-crm-app-config",
        "name": {
          "value": "Configuration"
        },
        "url": "/app",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ],
    "webPanels": [
      {
        "url": "/details?recordid={issue.key}",
        "location": "atl.jira.view.issue.right.context",
        "layout": {
          "width": "100%",
          "height": "100%"
        },
        "weight": 1,
        "supportsNative": false,
        "name": {
          "value": "CRM Details"
        },
        "key": "rt-details"
      }
    ],
    "webItems": [
      {
        "key": "webitem-app-config",
        "location": "gfh-crm-app-config/websection-app-config",
        "name": {
          "value": "Configuration"
        },
        "url": "/app",
        "context": "page",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "key": "resync-jira-issue",
        "location": "operations-top-level",
        "weight": 100,
        "name": {
          "value": "Resync Jira Issue"
        },
        "url": "/resync-jira-record?recordid={issue.key}",
        "context": "addon",
        "target": {
          "type": "page"
        }
      }
    ],
    "generalPages": [
      {
        "url": "/details",
        "key": "actions",
        "location": "atl.jira.view.issue.right.context",
        "name": {
          "value": "CRM Details"
        }
      },
      {
        "url": "/details",
        "key": "details",
        "location": "atl.jira.view.issue.left.context",
        "name": {
          "value": "CRM Details"
        }
      },
      {
        "url": "/save-information",
        "key": "save-information",
        "location": "none",
        "name": {
          "value": "save-information"
        }
      },
      {
        "url": "/get-jira-projects",
        "key": "get-jira-projects",
        "location": "none",
        "name": {
          "value": "get-jira-projects"
        }
      },
      {
        "url": "/get-jira-issuetypes-by-project",
        "key": "get-jira-issuetypes-by-project",
        "location": "none",
        "name": {
          "value": "get-jira-issuetypes-by-project"
        }
      },
      {
        "url": "/get-endpoint-two-projects",
        "key": "get-endpoint-two-projects",
        "location": "none",
        "name": {
          "value": "get-endpoint-two-projects"
        }
      },
      {
        "url": "/get-endpoint-two-issuetypes-by-project",
        "key": "get-endpoint-two-issuetypes-by-project",
        "location": "none",
        "name": {
          "value": "get-endpoint-two-issuetypes-by-project"
        }
      },
      {
        "url": "/validate-credentials",
        "key": "validate-credentials",
        "location": "none",
        "name": {
          "value": "validate-credentials"
        }
      },
      {
        "url": "/create-request",
        "key": "create-request",
        "location": "none",
        "name": {
          "value": "pre-create-request"
        }
      },
      {
        "url": "/validate-email",
        "key": "validate-email",
        "location": "none",
        "name": {
          "value": "validate-email"
        }
      },
      {
        "url": "/status",
        "key": "status",
        "location": "none",
        "name": {
          "value": "status"
        }
      }
    ]
  },
  "scopes": [
    "ADMIN",
    "ACT_AS_USER"
  ]
}