I have two Jira add-ons that have almost the same functionalities but different user interfaces. I would like to use the same source code for both but different descriptors.
I am using spring-boot
<dependency>
<groupId>com.atlassian.connect</groupId>
<artifactId>atlassian-connect-spring-boot-starter</artifactId>
<version>${atlassian-connect-spring-boot.version}</version>
</dependency>
<dependency>
<groupId>com.atlassian.connect</groupId>
<artifactId>atlassian-connect-spring-boot-jpa-starter</artifactId>
<version>${atlassian-connect-spring-boot.version}</version>
</dependency>
and my descriptor looks like:
{
"key": "${addon.app1-key}",
"baseUrl": "${addon.app1-base-url}",
"name": "app1",
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed",
"uninstalled": "/uninstalled"
},
"modules": {
"generalPages": [
{
"key": "landing-page",
"location": "system.top.navigation.bar",
"name": {
"value": "app1"
},
"url": "/collaboratorlogin",
"conditions": [
{
"and": [
{
"condition": "user_is_admin",
"invert": true
}
]
},
{
"condition": "user_is_logged_in"
}
]
},
{
"key": "admin-page",
"location": "system.top.navigation.bar",
"name": {
"value": "Manage app1"
},
"url": "/adminpage",
"conditions": [
{
"condition": "user_is_admin"
}
]
}
],
"postInstallPage": {
"url": "/home",
"name": {
"value": "Home Page",
"i18n": "homepage.name"
},
"key": "home-page"
},
"webhooks": [
{
"event": "jira:issue_created",
"url": "/wh/issue_created"
},
{
"event": "jira:issue_updated",
"url": "/wh/issue_updated"
}
]
},
"scopes": [
"READ",
"ADMIN",
"WRITE",
"ACT_AS_USER"
]
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.