{
    "key": "jp.ricksoft.plugins.excel4jira",
    "name": "Excel-like Bulk Issue Editor for Jira",
    "description": "Spreadsheet issue editor add-on for Jira Cloud.",
    "vendor": {
        "name": "Ricksoft, Inc.",
        "url": "https://www.ricksoft-inc.com/"
    },
    "baseUrl": "https://excel4jira.rickcloud.io",
    "enableLicensing": true,
    "authentication": {
        "type": "none"
    },
    "apiMigrations": {
        "gdpr": true
    },
    "scopes": [
        "READ","WRITE","DELETE","ADMIN"
    ],
    "modules": {
        "adminPages": [
            {
                "url": "/admin-permission.html",
                "location": "admin_plugins_menu/issueeditor-admin-menu-section",
                "name": {
                    "value": "Permissions"
                },
                "conditions": [
                    {
                      "condition": "addon_is_licensed"
                    }
                ],
                "key": "admin-permission"
            },
            {
                "url": "/admin-configuration-project.html",
                "location": "admin_plugins_menu/issueeditor-admin-menu-section",
                "name": {
                    "value": "Project"
                },
                "conditions": [
                    {
                      "condition": "addon_is_licensed"
                    }
                ],
                "key": "admin-project-config"
            }
        ],
        "generalPages": [
            {
                "url": "/main.html",
                "name": {
                    "value": "Main Page"
                },
                "key": "main",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    }
                ],
                "location": "none"
            },
            {
                "url": "/spreadsheets.html",
                "name": {
                    "value": "Excel-like Bulk Issue Editor"
                },
                "key": "spreadsheets",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    }
                ],
                "location": "none"
            }
        ],
        "jiraProjectAdminTabPanels": [
            {
                "location": "projectgroup4",
                "url": "/project-admin-panel.html?projectKey={project.key}&projectId={project.id}",
                "weight": 1,
                "name": {
                    "value": "Excel-like Bulk Issue Editor"
                },
                "key": "admin-panel",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    }
                ]
            }
        ],
        "jiraProjectPages": [
            {
                "key": "issueeditor-project-sidebar-link-to-panel",
                "location": "jira.project.sidebar.plugins.navigation",
                "context": "product",
                "iconUrl": "/images/eie-v2-logo-app.svg",
                "name": {
                    "value": "Excel-like Bulk Issue Editor"
                },
                "url": "/project-tab-panel.html?projectKey={project.key}&projectId={project.id}",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "projects"
                                }
                            },
                            {
                                "condition": "entity_property_contains_context",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "projects",
                                    "contextParameter": "project.key"
                                }
                            }                        
                        ]
                    }
                ]
            }
        ],
        "postInstallPage": {
            "url": "/post-install-page.html",
            "name": {
                "value": "Excel-like Bulk Issue Editor Post-Install Page"
            },
            "key": "issueeditor-post-install-page"
        },
        "dialogs": [
            {
                "url": "/my-dialog-content",
                "key": "dialog-module-key"
            }
        ],
        "webSections": [
            {
                "key": "issueeditor-admin-menu-section",
                "location": "admin_plugins_menu",
                "name": {
                    "value": "Excel-like Bulk Issue Editor"
                }
            }
        ],
        "webItems": [
            {
                "key": "issueeditor-issue-nav-link",
                "location": "jira.navigator.pluggable.items",
                "icon": {
                    "width": 16,
                    "height": 16,
                    "url": "/images/eie-v2-logo-app.svg"
                },
                "weight": 10,
                "name": {
                    "value": "Open in Excel-like Bulk Issue Editor"
                },
                "tooltip": {
                    "value": "Open in Excel-like Bulk Issue Editor"
                },
                "target": {
                    "type": "dialog",
                    "options": {
                        "key": "dialog-module-key",
                        "height": "100px",
                        "width": "200px",
                        "chrome": "false"
                    }
                },
                "url": "/issue-nav-bridge.html",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    }
                ]
            },
            {
                "name": {
                    "value": "Excel-like Bulk Issue Editor"
                },
                "context": "page",
                "url": "spreadsheets",
                "icon": {
                    "width": 24,
                    "height": 24,
                    "url": "/images/eie-v2-logo.png"
                },
                "key": "top-menu-show-all-spreadsheets",
                "conditions": [
                    {
                        "condition": "addon_is_licensed"
                    },
                    {
                        "or": [
                            {
                                "condition": "entity_property_exists",
                                "invert": true,
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            },
                            {
                                "condition": "entity_property_contains_any_user_group",
                                "params": {
                                    "entity": "addon",
                                    "propertyKey": "permissions",
                                    "objectName": "groups"
                                }
                            }
                        ]
                    }
                ],
                "location": "system.top.navigation.bar"
            }
        ]
    }
}