{
  "name": "Mail Me PRE-RELEASE",
  "description": "Send an issue via email: add attachments, customize the appearance, choose recipients or even groups, configure your own SMTP server and more. Send emails effortlessly. Increase your work efficiency - get started doing more with Mail Me.",
  "key": "com.alphaserve.cloud-mail-me",
  "baseUrl": "https://mailme-prerelease.prerelease-alphaservesp.com",
  "enableLicensing": false,
  "vendor": {
    "name": "Alpha Serve",
    "url": "https://www.alphaservesp.com"
  },
  "authentication": {
    "type": "jwt"
  },
  "apiMigrations": {
    "context-qsh": true,
    "signed-install": true
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": [
    "READ",
    "WRITE",
    "ACT_AS_USER",
    "DELETE",
    "ACCESS_EMAIL_ADDRESSES",
    "ADMIN"
  ],
  "apiVersion": 1,
  "modules": {
    "jiraIssueTabPanels": [
      {
        "url": "/front/emails-tab?issueId={issue.id}",
        "weight": 100,
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "key": "issue-tab",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "entity_property_exists",
            "invert": true,
            "params": {
              "entity": "project",
              "propertyKey": "com.alphaserve.mail-me.enabled"
            }
          }
        ]
      }
    ],
    "jiraIssueContexts": [
      {
        "icon": {
          "width": 24,
          "height": 24,
          "url": "/pluginIcon.png"
        },
        "content": {
          "type": "label",
          "label": {
            "value": "Mail Me PRE-RELEASE"
          }
        },
        "target": {
          "type": "web_panel",
          "url": "webPanel.html"
        },
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "key": "mail-me-issue-glance",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "entity_property_exists",
            "invert": true,
            "params": {
              "entity": "project",
              "propertyKey": "com.alphaserve.mail-me.enabled"
            }
          }
        ]
      }
    ],
    "webSections": [
      {
        "key": "mailme-menu-section",
        "location": "top-navbar-menu",
        "name": {
          "value": "Mail Me PRE-RELEASE"
        }
      }
    ],
    "webItems": [
      {
        "location": "operations-operations",
        "weight": 9000,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "browse-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me PRE-RELEASE"
        },
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "key": "mail-me-more-details",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "entity_property_exists",
            "invert": true,
            "params": {
              "entity": "project",
              "propertyKey": "com.alphaserve.mail-me.enabled"
            }
          }
        ]
      },
      {
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "user_is_admin"
          }
        ],
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "context": "page",
        "icon": {
          "width": 24,
          "url": "/pluginIcon.png",
          "height": 24
        },
        "weight": 50,
        "location": "system.top.navigation.bar",
        "url": "server-mail-me",
        "key": "top-navbar-menu"
      },
      {
        "location": "top-navbar-menu/mailme-menu-section",
        "weight": 8000,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "server-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me SMTP"
        },
        "name": {
          "value": "Custom SMTP server"
        },
        "key": "mail-me-server",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "location": "top-navbar-menu/mailme-menu-section",
        "weight": 9000,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "template-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me Templates"
        },
        "name": {
          "value": "Templates"
        },
        "key": "mail-me-template",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "location": "top-navbar-menu/mailme-menu-section",
        "weight": 9500,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "projects-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me Projects"
        },
        "name": {
          "value": "Projects"
        },
        "key": "mail-me-projects",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
      "location": "top-navbar-menu/mailme-menu-section",
      "weight": 9500,
      "styleClasses": [
          "webitem",
          "system-present-webitem"
      ],
      "url": "tokens-mail-me",
      "context": "page",
      "tooltip": {
        "value": "Mail Me Tokens"
      },
      "name": {
          "value": "Tokens"
      },
      "key": "mail-me-tokens",
      "conditions": [
          {
              "condition": "addon_is_licensed",
              "invert": true
          }
        ]
      },
      {
        "location": "top-navbar-menu/mailme-menu-section",
        "weight": 9500,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "settings-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me Settings"
        },
        "name": {
          "value": "General Settings"
        },
        "key": "mail-me-settings",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "location": "top-navbar-menu/mailme-menu-section",
        "weight": 9500,
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "url": "emails-mail-me",
        "context": "page",
        "tooltip": {
          "value": "Mail Me Log"
        },
        "name": {
          "value": "Email Log"
        },
        "key": "mail-me-emails",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ],
    "dialogs": [
      {
        "url": "/front/token-confirmation-dialog",
        "options": {},
        "key": "token-confirmation-dialog",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ],
    "generalPages": [
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/email?issueId={issue.id}&acIssueId={ac.issueId}&projectId={project.id}&acProjectId={ac.projectId}",
        "key": "browse-mail-me",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/server",
        "key": "server-mail-me",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/template",
        "key": "template-mail-me",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/projects",
        "key": "projects-mail-me",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
      },
      "location": "none",
      "url": "/front/pluginTokens",
      "key": "tokens-mail-me",
      "conditions": [
        {
            "condition": "user_is_logged_in"
        }
       ]
      },
      {
        "name": {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/settings",
        "key": "settings-mail-me",
        "conditions": [
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "name":  {
          "value": "Mail Me PRE-RELEASE"
        },
        "location": "none",
        "url": "/front/emails-log",
        "key": "emails-mail-me",
        "conditions":[
          {
            "condition": "addon_is_licensed",
            "invert": true
          },
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ]
  }
}