Create an Atlassian app
First you need an atlassian account that will be the owner of the application. We recommend to use a non personal account. This account does not need to have access to any Space as it will serve as a bridge between Zylon and Confluence.-
Go to https://developer.atlassian.com/console/myapps/
Click
Create
→OAuth 2.0 integration

- Provide a meaningful name for the Application.

- On distribution:
- In the left menu navigate to
Distribution
- Click on
Edit
- In the left menu navigate to

- On distribution status:
- Select the
Sharing
checkbox. - Enter a vendor name or choose the option
Use your own name
. - If you have a privacy policy, provide the link to it. If not, use the default link:
https://example.com/privacy
, which is intended for internal use. - For the question “Does your app store personal data?”, select
No

- On permissions:
- In the left menu, navigate to
Permissions
. - Click
Add
forConfluence API
. - The page refreshes automatically, and a new
Configure
button should appear. If it does not, refresh the page manually. - Click
Configure
.


- Click
Granual scopes
and then onEdit scopes

-
Add one by one the following permissions. You can search them pasting the values into the field with a magnifying glass.
There needs to be a total of
10
scopes added that you can review before saving.


- On authorization:
- In the left menu, navigate to
Authorization
. - Click
Add
forOAuth 2.0 (3LO)
.

- In authorization:
- In the
Callback URL
field, enter:https://zylon.company.com/api/app/integration/confluence/callback
Replacezylon.company.com
with the hostname where Zylon is installed on your server. - Click
Save changes
.

- On settings:
- In the left menu, navigate to
Settings
. Copy the two values listed underAuthentication details
:- Client ID
- Secret

Configure Zylon to use Atlassian Application
With the values we have acquired in step 10, you need to edit Zylon config file located in/etc/zylon/zylon-conf.yaml
The config file is a
.yaml
file mind indentation, spaces, semicolons, double quotes!- clientId → value generated on step 10
- clientSecret → value generated on step 10
- redirectUri → same value as step 9
/etc/zylon/zylon-conf.yaml
file
Finally, execute the following command to reset Zylon and update the config
Troubleshooting
I try to upload files to the knowledge base and Confluence button is greyed out
Clear the browser cache and try again.When I click on Upload files -> From Confluence
the log in is not working
- Check that the
clientId
secretId
are copy pasted correctly into Zylon config file - Check that the
Callback URL
is correct in step 9 and it’s the same as theredirectUri
in the config file.
I don’t see any space to import
- Make sure you have logged in into Confluence with an account that has access to spaces.
- Check the permissions required are correct as shown in step 6