My Atlassian-connect.json look like this
- "modules": {
- "dynamicContentMacros": [
- {
- "name": {
- "value": "Macro whose content is rendered by an iframe"
- },
- "description": {
- "value": "Render a macro in a page with an iframe"
- },
- "key": "dynamic-sport-macro",
- "url": "/display?body={macro.hash}&space_id={space.id}&page_id={page.id}",
- "categories": ["development"],
- "documentation": {
- "url": "https://developer.atlassian.com/static/connect/docs"
- },
- "outputType": "inline",
- "bodyType": "rich-text",
- "height": "80px",
- "width": "200px",
- "icon": {
- "url": "/images/icons/icon.png",
- "height": 16,
- "width": 16
- },
- "alias": "dynamic-macro",
- "editor": {
- "url": "/editor",
- "editTitle": {
- "value": "Edit your favourite sport"
- },
- "insertTitle": {
- "value": "Choose your favourite sport"
- },
- "height": "600px",
- "width": "600px"
- },
- "imagePlaceholder": {
- "url": "/images/icons/icon.png"
- }
- }
- ],
- "webItems": [
- {
- "url": "/my-web-item",
- "location": "system.preset.filters",
- "context": "addon",
- "weight": 200,
- "target": {
- "type": "page",
- "options": {}
- },
- "styleClasses": [
- "webitem",
- "system-present-webitem"
- ],
- "tooltip": {
- "value": "Example tooltip"
- },
- "icon": {
- "width": 16,
- "height": 16,
- "url": "/maps/icon.png"
- },
- "key": "web-item-example",
- "name": {
- "value": "My Web Item"
- }
- }
- ]
- }
Now the log which I see after running command "node app.js" is given below.
- root@vikash:~/atlas-projects/onDemand/ondemand-plugin$ node app.js
- Watching atlassian-connect.json for changes
- Initialized memory storage adapter
- Add-on server running at http://localhost:3000
- Registering add-on...
- GET /atlassian-connect.json 200 5ms - 2.22kb
- Registered with host jira:8680dc0e-4f86-4162-afd2-e8abbc5a18a1 at http://localhost:2990/jira
- Registered with host Confluence:1964677261 at http://localhost:1990/confluence
- GET /atlassian-connect.json 200 3ms - 2.22kb
- POST /enabled?user_id=admin&user_key=ff8080814624bfd7014624c00ef60003 404 2ms
- Saved tenant details for Confluence:1964677261 to database
- { key: 'ondemand-plugin-key',
- clientKey: 'Confluence:1964677261',
- publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCl1yvBetks8pYbshWA29fJ1Xsj3xrZR1d42ZUtvhsWSefMZj/pgOWY1vAqwRvkId11KQHJsdGJ88bbgSsv8zHSqSNqTlKV+HywR2/MYfqLhdob3NzeCCfafspncJ5cTPYJLRvVrAtYARwyuAxAKgWuRqoURdEbImjiYLi6IWNA2QIDAQAB',
- sharedSecret: '6459a359-3523-46bd-9a92-40ba9afb7ade',
- serverVersion: '5109',
- pluginsVersion: '1.0.2',
- baseUrl: 'http://localhost:1990/confluence',
- productType: 'confluence',
- description: 'host.consumer.default.description',
- eventType: 'installed' }
- POST /installed?user_key=ff8080814624bfd7014624c00ef60003 204 9ms
- POST /enabled?user_id=admin&user_key=ff8080814624bfd7014624c00ef60003 404 1ms
Its enabled for confluence but not for jira.
if I remove dynamicContentMacros and leave webitem alone then it gets enabled for jira as well.
But not working for both the hosts jira and confluence at a time.
Please help.
Thanks,
vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.