{
  "key": "com.midori.jira.plugin.pdfview",
  "name": "Better PDF Exporter for Jira Cloud",
  "description": "Customizable PDF export for Jira: issue lists, dashboards, timesheets, invoices, reports, Release Notes, story cards & custom documents.",
  "baseUrl": "https://jpdfc.gabornagy.midori-dev.systems",
  "vendor": {
    "name": "Midori Global Consulting Kft.",
    "url": "https://www.midori-global.com"
  },
  "links": {
    "self": "https://jpdfc.gabornagy.midori-dev.systems/atlassian-connect.json"
  },
  "enableLicensing": true,
  "authentication": {
    "type": "jwt"
  },
  "apiVersion": 1,
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": [
    "READ",
    "ACT_AS_USER"
  ],
  "apiMigrations": {
    "gdpr": true,
    "context-qsh": true,
    "signed-install": true
  },
  "modules": {
    "webSections": [
      {
        "key": "jpdfc-menu-section",
        "location": "admin_plugins_menu",
        "name": {
          "value": "Better PDF Exporter"
        },
        "weight": 53
      }
    ],
    "webItems": [
      {
        "key": "jpdfc-export-button-issue-navigator",
        "name": {
          "value": "Export PDF"
        },
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/app-icon-16.svg"
        },
        "tooltip": {
          "value": "Export this search to PDF (with Better PDF Exporter)"
        },
        "location": "jira.navigator.pluggable.items",
        "weight": 2,
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-navigator"
          }
        }
      },
      {
        "key": "jpdfc-export-button-issue-navigator-row",
        "name": {
          "value": "Export PDF"
        },
        "location": "operations-admin-helper",
        "weight": 101,
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-single"
          }
        }
      },
      {
        "key": "jpdfc-export-button-dashboard",
        "name": {
          "value": "Export dashboard to PDF"
        },
        "styleClasses": [
          "aui-button"
        ],
        "location": "gadgets.dashboard.menu",
        "weight": 99,
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-dashboard"
          }
        }
      },
      {
        "key": "jpdfc-export-button-classic-board",
        "name": {
          "value": "Export PDF"
        },
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/app-icon-16.svg",
          "_comment": "This is ignored by Jira for some reason."
        },
        "tooltip": {
          "value": "Export this board to PDF (with Better PDF Exporter)",
          "_comment": "This is ignored by Jira for some reason."
        },
        "location": "jira.agile.board.tools",
        "weight": 102,
        "context": "addon",
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-agile"
          }
        }
      },
      {
        "key": "jpdfc-export-button-classic-board-sprint",
        "name": {
          "value": "Export PDF"
        },
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/app-icon-16.svg",
          "_comment": "This is ignored by Jira for some reason."
        },
        "tooltip": {
          "value": "Export this sprint to PDF (with Better PDF Exporter)"
        },
        "location": "sprint-delete-action",
        "weight": 101,
        "context": "addon",
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-agile"
          }
        }
      },
      {
        "key": "jpdfc-export-button-next-gen-board",
        "name": {
          "value": "Export PDF"
        },
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/app-icon-24.svg",
          "_comment": "Size is ignored by Jira for some reason (enforces us to provide a 24x24 icon)."
        },
        "tooltip": {
          "value": "Export this board to PDF (with Better PDF Exporter)"
        },
        "location": "jira.software.board.tools",
        "weight": 201,
        "context": "addon",
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-next-gen"
          }
        }
      },
      {
        "key": "jpdfc-export-button-next-gen-backlog",
        "name": {
          "value": "Export PDF"
        },
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/app-icon-24.svg",
          "_comment": "Size is ignored by Jira for some reason (enforces us to provide a 24x24 icon)."
        },
        "tooltip": {
          "value": "Export this backlog to PDF (with Better PDF Exporter)"
        },
        "location": "jira.software.backlog.tools",
        "weight": 203,
        "context": "addon",
        "target": {
          "type": "dialogmodule",
          "options": {
            "key": "jpdfc-create-export-dialog-next-gen"
          }
        }
      },
      {
        "key": "jpdfc-getting-started-admin-top-menu-item",
        "name": {
          "value": "Better PDF Exporter"
        },
        "url": "jpdfc-getting-started-admin-page?s=com.midori.jira.plugin.pdfview__jpdfc-getting-started-admin-page",
        "location": "system.top.navigation.bar",
        "weight": 53,
        "context": "page",
        "icon": {
          "width": 20,
          "height": 20,
          "url": "/app-icon-light.svg"
        },
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "key": "jpdfc-getting-started-top-menu-item",
        "name": {
          "value": "Better PDF Exporter"
        },
        "url": "jpdfc-getting-started-page",
        "location": "system.top.navigation.bar",
        "weight": 53,
        "context": "page",
        "icon": {
          "width": 20,
          "height": 20,
          "url": "/app-icon-light.svg"
        },
        "conditions": [
          {
            "condition": "user_is_admin",
            "invert": true
          }
        ]
      }
    ],
    "dialogs": [
      {
        "key": "jpdfc-create-export-dialog-single",
        "url": "/export/create?projectKey={project.key}&issueKey={issue.key}&context=SINGLE_ISSUE_VIEW",
        "options": {
          "height": "100%",
          "width": "100%",
          "chrome": false
        }
      },
      {
        "key": "jpdfc-create-export-dialog-navigator",
        "url": "/export/create?context=ISSUE_NAVIGATOR",
        "options": {
          "height": "100%",
          "width": "100%",
          "chrome": false
        }
      },
      {
        "key": "jpdfc-create-export-dialog-dashboard",
        "url": "/export/create?context=DASHBOARD&dashboardId={dashboard.id}",
        "options": {
          "height": "100%",
          "width": "100%",
          "chrome": false
        }
      },
      {
        "key": "jpdfc-create-export-dialog-agile",
        "url": "/export/create?boardId={board.id}&boardType={board.type}&boardScreen={board.screen}&sprintId={sprint.id}&context=JIRA_SOFTWARE",
        "options": {
          "height": "100%",
          "width": "100%",
          "chrome": false
        }
      },
      {
        "key": "jpdfc-create-export-dialog-next-gen",
        "url": "/export/create?boardId={board.id}&boardType={board.type}&boardScreen={board.screen}&context=JIRA_SOFTWARE",
        "options": {
          "height": "100%",
          "width": "100%",
          "chrome": false
        }
      }
    ],
    "jiraIssueGlances": [
      {
        "key": "jpdfc-issue-details-glance",
        "name": {
          "value": "Better PDF Exporter"
        },
        "icon": {
          "width": 24,
          "height": 24,
          "url": "/app-icon.svg"
        },
        "content": {
          "type": "label",
          "label": {
            "value": "Export PDF"
          }
        },
        "target": {
          "type": "web_panel",
          "url": "/export/glance-instructions?projectKey={project.key}&issueKey={issue.key}&context=SINGLE_ISSUE_VIEW"
        },
        "jiraNativeAppsEnabled": true,
        "_comment": "TODO remove this after the issue glance is finally removed by Atlassian"
      }
    ],
    "jiraIssueContexts": [
      {
        "key": "jpdfc-issue-details-context",
        "name": {
          "value": "Better PDF Exporter"
        },
        "icon": {
          "width": 24,
          "height": 24,
          "url": "/app-icon.svg"
        },
        "content": {
          "type": "label",
          "label": {
            "value": "Export PDF"
          }
        },
        "target": {
          "type": "web_panel",
          "url": "/export/glance-instructions?projectKey={project.key}&issueKey={issue.key}&context=SINGLE_ISSUE_VIEW"
        },
        "jiraNativeAppsEnabled": true
      }
    ],
    "adminPages": [
      {
        "key": "jpdfc-views-admin-page",
        "name": {
          "value": "PDF views"
        },
        "url": "/views?highlightedId={ac.highlightedId}",
        "location": "admin_plugins_menu/jpdfc-menu-section",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "key": "jpdfc-resources-admin-page",
        "name": {
          "value": "PDF templates"
        },
        "url": "/resources?highlightedId={ac.highlightedId}",
        "location": "admin_plugins_menu/jpdfc-menu-section",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "key": "jpdfc-view-log-admin-page",
        "name": {
          "value": "View log"
        },
        "url": "/logs",
        "location": "admin_plugins_menu/jpdfc-menu-section",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      },
      {
        "key": "jpdfc-getting-started-admin-page",
        "name": {
          "value": "Getting started"
        },
        "url": "/getting-started?isAdmin=true",
        "location": "admin_plugins_menu/jpdfc-menu-section",
        "conditions": [
          {
            "condition": "user_is_admin"
          }
        ]
      }
    ],
    "generalPages": [
      {
        "key": "jpdfc-getting-started-page",
        "name": {
          "value": "Getting started"
        },
        "url": "/getting-started?noSideBar=true",
        "location": "none"
      }
    ],
    "postInstallPage": {
      "key": "getting-started-post-install-page",
      "name": {
        "value": "Getting started"
      },
      "url": "/getting-started?isAdmin=true"
    }
  }
}