One of the most important steps is to make a connection between Jira and Confluence. To do so we are going to need two pieces of information:
- an email address of a Jira user
- an API token generated by that user
How to generate an API token
The API token is a secure way how to access the Jira, without a need for entering a password.
- You can generate the API token on this screen: https://id.atlassian.com/manage-profile/security/api-tokens.
- Click Create API token.
- From the dialog that appears, enter a memorable and concise Label for your token and click Create.
- Click Copy to clipboard, then paste the token to your script, or elsewhere to save.
Where to insert the credentials
Once you have the e-mail address and the API token ready, it’s time to configure the macro, so as it is able to pull issues from Jira.
Firstly, click “Apps” -> “Manage apps” from the top navigation Confluence menu.
A screen where installed apps are managed is shown. Now find the “Issue Calendar Macro for Confluence” application and click “Configure“.
Now, at the configuration screen enter the e-mail address and the API token into the form and click “Save”.
Next steps
And that’s it! This step may have been a bit complicated, but the most important thing is that you’ve successfully managed to configure the macro. Now it’s time to insert the calendar macro into your Confluence page.