Confluence - Create a space picker
Use case
Connect Jira to Confluence and create a Space picker.
Can be used in a scenario where Jira is used to manage access requests. With the "Confluence repositories" field, a manager could select to which spaces the access shall be granted to a new developer joining his team.
This is just an example, the Confluence REST API gives access to plenty of information like Content or Users.
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2011.47.05.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
In this example, we select Spaces from Atlassian's Confluence
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2011.48.00.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
Issues view: are displayed the icon, name and description of the selected spaces
Configuration
Datasource
You have two options:
Create an Application link between Jira and Confluence, it will automatically be available in Elements connect as a datasources - see Preconfigured application link datasources
If you can't / don't want to create an Application link, create a URL datasource to have a direct access to Confluence - see Configure a URL datasource
For our demo, we choose the second option - we created a URL connection to Atlassian's Confluence:
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2011.56.31.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
Fields
Download the field configuration: Spaces_export.json
From Elements Connect administration, create an Elements Connect field of type Live Text
Click on the field name to configure it and select the third option: "Import an external configuration"
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2012.05.33.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
Select "Import an external configuration"
On the next screen, select the "Confluence" datasource and upload the Spaces_export.json file
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2012.05.49.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
Select the Confluence datasource, upload the json file
Click on "Import"
That's it!
The field is now configured. You can adapt the query ("URL Path") to your needs, check out the Confluence REST API documentation to discover what you can do with it.Click the "Save" button, the field can now be used from an issue.
![](../__attachments/10980589612/Capture%20d%E2%80%99e%CC%81cran%202020-04-24%20a%CC%80%2012.07.58.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
Field properly configured