Hello,
I try to learn how to use existing connect modules directly from forge app.
I followed this guide: https://developer.atlassian.com/platform/forge/build-a-connect-on-forge-app/#uninstall-reinstall-required-to-reflect-connect-module-changes
And in the guide I understand that I should add connectModules
key in the manifest.yml
file.
But there is no any example how to write it.
Here is my atlassian-connect.json
:
{
"name": "Hello World",
"description": "Atlassian Connect app",
"key": "com.example.myapp",
"baseUrl": "{{baseUrl}}",
"vendor": {
"name": "Example, Inc.",
"url": "http://example.com"
},
"scopes": ["READ"],
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed"
},
"apiVersion": 1,
"modules": {
"jiraIssueTabPanels": [
{
"url": "/helloworld.html",
"weight": 100,
"key": "hello-world",
"name": {
"value": "My Issue Tab Panel"
}
}
]
}
}
And here is the manifest.yml
:
modules:
jira:issuePanel:
- key: forge-test-app-hello-world-panel
function: main
title: forge-test-app
icon: https://developer.atlassian.com/platform/forge/images/icons/issue-panel-icon.svg
function:
- key: main
handler: index.run
connectModules:
????? <--------------------- How to write the code here?
remotes:
- key: connect
baseUrl: <connect app server goes here>
app:
id: ari:cloud:ecosystem::app/77fb516a-037c-43e6-9e46-02aa5e9a71ab
connect:
key: hello-world
remote: connect
The part I don’t know how to write is under connectModules
.
Here are the connect modules from atlassian-connect.json
:
"modules": {
"jiraIssueTabPanels": [
{
"url": "/helloworld.html",
"weight": 100,
"key": "hello-world",
"name": {
"value": "My Issue Tab Panel"
}
}
]
}
The question is how to write it in the manifest.yml.
I did not found any example / documentation for that.
Any help will be appreciated.
Thanks
Edit:
I also want example how to write the lifecycle
section in the manifest.
Thank you