Elements Connect for Data Center

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.

Capture d’écran 2020-04-24 à 11.47.05.png

In this example, we select Spaces from Atlassian's Confluence

Capture d’écran 2020-04-24 à 11.48.00.png

Issues view: are displayed the icon, name and description of the selected spaces


Configuration

Datasource

You have two options:

For our demo, we choose the second option - we created a URL connection to Atlassian's Confluence:

Capture d’écran 2020-04-24 à 11.56.31.png

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"

Capture d’écran 2020-04-24 à 12.05.33.png

Select "Import an external configuration"

  • On the next screen, select the "Confluence" datasource and upload the Spaces_export.json file

Capture d’écran 2020-04-24 à 12.05.49.png

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.

Capture d’écran 2020-04-24 à 12.07.58.png

Field properly configured