{
  "key": "com.calvinware.time-tracking-enforcer",
  "baseUrl": "https://jtte-backend.calvinware.com/",
  "name": "Time Tracking Enforcer",
  "description": "The easy, painless, nag-free time tracking enforcement solution.",
  "vendor": {
    "name": "Calvinware, LLC",
    "url": "http://www.timetrackingenforcer.com"
  },
  "enableLicensing": true,
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled",
    "enabled": "/webhooks/enabled"
  },
  "scopes": [
    "READ",
    "WRITE",
    "DELETE",
    "PROJECT_ADMIN",
    "ADMIN",
    "ACT_AS_USER"
  ],
  "modules": {
    "jiraBackgroundScripts": [
      {
        "url": "/issue-background-task-script.html",
        "location": {
          "type": "issue_view",
          "shouldReloadOnRefresh": true
        },
        "key": "time-tracking-enforcer-issue-script"
      }
    ],
    "webhooks": [
      {
        "event": "worklog_created",
        "url": "/webhooks/worklog_created"
      },
      {
        "event": "worklog_updated",
        "url": "/webhooks/worklog_updated"
      },
      {
        "event": "worklog_deleted",
        "url": "/webhooks/worklog_deleted"
      }
    ],
    "jiraIssueGlances": [
      {
        "icon": {
          "width": 0,
          "height": 0,
          "url": "not_limited.png"
        },
        "content": {
          "type": "label",
          "label": {
            "value": "No restrictions"
          }
        },
        "target": {
          "type": "web_panel",
          "url": "/webpanel?projectId={project.id}&issueId={issue.id}"
        },
        "jiraNativeAppsEnabled": false,
        "name": {
          "value": "Time Tracking Enforcer"
        },
        "key": "time-tracking-enforcer-allowed-glance",
        "conditions": [
          {
            "and": [
              {
                "condition": "entity_property_equal_to",
                "invert": true,
                "params": {
                  "entity": "user",
                  "propertyKey": "jtte-warn",
                  "value": "warning-1",
                  "objectName": "warning"
                }
              },
              {
                "condition": "entity_property_equal_to",
                "invert": true,
                "params": {
                  "entity": "user",
                  "propertyKey": "jtte-warn-comment",
                  "value": "warning-1",
                  "objectName": "warning"
                }
              }
            ]
          }
        ]
      },
      {
        "icon": {
          "width": 0,
          "height": 0,
          "url": "limited.png"
        },
        "content": {
          "type": "label",
          "label": {
            "value": "There are some restrictions"
          }
        },
        "target": {
          "type": "web_panel",
          "url": "/webpanel?projectId={project.id}&issueId={issue.id}"
        },
        "jiraNativeAppsEnabled": false,
        "name": {
          "value": "Time Tracking Enforcer"
        },
        "key": "time-tracking-enforcer-restricted-glance",
        "conditions": [
          {
            "or": [
              {
                "condition": "entity_property_equal_to",
                "params": {
                  "entity": "user",
                  "propertyKey": "jtte-warn",
                  "value": "warning-1",
                  "objectName": "warning"
                }
              },
              {
                "condition": "entity_property_equal_to",
                "params": {
                  "entity": "user",
                  "propertyKey": "jtte-warn-comment",
                  "value": "warning-1",
                  "objectName": "warning"
                }
              }
            ]
          }
        ]
      }
    ],
    "jiraDashboardItems": [
      {
        "name": {
          "value": "Time Tracking Enforcer"
        },
        "url": "/webpanel?projectId={project.id}&issueId={issue.id}",
        "key": "iframe-requests",
        "description": {
          "value": "Time Tracking Enforcer dashboard gadget"
        },
        "thumbnailUrl": "/glance_icon.svg",
        "configurable": true
      }
    ],
    "webSections": [
      {
        "key": "jtte-config-section",
        "location": "admin_plugins_menu",
        "name": {
          "value": "Time Tracking Enforcer"
        },
        "conditions": [
          {
            "or": [
              {
                "condition": "user_is_admin"
              },
              {
                "condition": "user_is_sysadmin"
              }
            ]
          }
        ]
      }
    ],
    "adminPages": [
      {
        "key": "config-policy",
        "location": "admin_plugins_menu/jtte-config-section",
        "name": {
          "value": "Policies"
        },
        "url": "/policy-config"
      },
      {
        "key": "config-schedule",
        "location": "admin_plugins_menu/jtte-config-section",
        "name": {
          "value": "Schedule"
        },
        "url": "/schedule-config"
      },
      {
        "key": "config-vacations",
        "location": "admin_plugins_menu/jtte-config-section",
        "name": {
          "value": "Vacations"
        },
        "url": "/vacations-config"
      },
      {
        "key": "config-notifications",
        "location": "admin_plugins_menu/jtte-config-section",
        "name": {
          "value": "Notifications"
        },
        "url": "/notifications-config"
      }
    ]
  }
}
