{
  "key": "rewe-portfolio-extensions",
  "baseUrl": "https://rewe-portfolio-extension.celix.at",
  "name": "Rewe Portfolio Extensions",
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": [
    "READ",
    "WRITE",
    "ADMIN"
  ],
  "modules": {
    "webhooks": [
      {
        "event": "worklog_created",
        "url": "/hooks/worklog/created",
        "excludeBody": false
      },
      {
        "event": "worklog_updated",
        "url": "/hooks/worklog/updated",
        "excludeBody": false
      },
      {
        "event": "jira:issue_created",
        "url": "/hooks/issue/created",
        "excludeBody": false
      },
      {
        "event": "jira:issue_updated",
        "url": "/hooks/issue/updated",
        "excludeBody": false
      }
    ],
    "webItems": [
      {
        "key": "rewe-pit-account-inheritance",
        "location": "operations-operations",
        "weight": 200,
        "name": {
          "value": "Trigger account inheritance"
        },
        "url": "/account/sync/dialog/{issue.id}",
        "target": {
          "type": "dialog",
          "options": {
            "height": "300px",
            "width": "600px",
            "header": {
              "value": "Portfolio Account Sync"
            }
          }
        }
      },
      {
        "key": "rewe-pit-worklog-overwrite",
        "location": "operations-operations",
        "weight": 300,
        "name": {
          "value": "Overwrite worklog attributes"
        },
        "url": "/worklog-overwrite/issues/{issue.id}",
        "target": {
          "type": "dialog",
          "options": {
            "height": "500px",
            "width": "920px",
            "header": {
              "value": "Overwrite worklog attributes"
            }
          }
        },
        "conditions": [
          {
            "condition": "has_project_permission",
            "params": {
              "permission": "rewe-portfolio-extensions__rewe-portfolio-allow-overwrite"
            }
          }
        ]
      }
    ],
    "webSections": [
      {
        "key": "rewe-pit-admin-section",
        "location": "admin_plugins_menu",
        "name": {
          "value": "Portfolio Extension"
        }
      }
    ],
    "configurePage": {
      "url": "/configure",
      "name": {
        "value": "Portfolio Extension Configuration"
      },
      "key": "rewe-pit-configuration"
    },
    "adminPages": [
      {
        "url": "/configure",
        "key": "rewe-pit-configuration-admin",
        "name": {
          "value": "Settings"
        },
        "location": "admin_plugins_menu/rewe-pit-admin-section"
      },
      {
        "url": "/jobs",
        "key": "rewe-pit-jobs",
        "name": {
          "value": "Jobs"
        },
        "location": "admin_plugins_menu/rewe-pit-admin-section"
      }
    ],
    "jiraProjectPermissions": [
      {
        "description": {
          "value": "Allows manual editing of the activation and module for worklogs in this project"
        },
        "name": {
          "value": "Edit Worklog Activation/Module"
        },
        "category": "time_tracking",
        "key": "rewe-portfolio-allow-overwrite"
      }
    ]
  }
}
