# Integrations

How to connect GitHub and GitLab repositories, calendars, API tokens, webhooks, agents and a Jira import to Youniton.

**For:** Admin, Product manager, Developer

## For the Admin: permit Git providers

1. Open Administration › Integrations › Providers.

2. Select the providers that the workspace permits: GitHub, GitLab.com or a self-managed GitLab with its address.

3. Set the rotation period of tokens.

   Result: The default is 90 days, with a warning 14 days before.

4. Select **Save**.

## Connect a repository

1. Select **Connect repository** in Administration › Integrations, or in the header of the project overview.

2. Select the project.

3. Select the provider.

4. Paste an access token with a limited scope: a fine-grained personal access token of GitHub, or a project or group access token of GitLab.

5. Select the repository.

6. Select **Connect**.

   Result: Youniton checks the token, keeps it sealed and makes the webhook. The token is never shown again.

A project can have more than one repository, and one repository can serve more than one project. Each connection has its own token and its own owner.

## Link merge requests to tickets

Put the key of the ticket, for example `ORB-124`, in the branch name, in the title of the merge request or in a commit message. Youniton links the merge request to the ticket.

> *Illustration: A linked merge request on a card.* ORB-124 · Checkout retries

- The ticket panel shows the repository, the title and the state of each linked merge request: open, merged or closed.
- The rule "Move ticket to In review when a merge request is opened" moves the ticket. The rule "Move to Done when it merges" completes it when you enable it.
- The activity of the ticket shows the rule, its owner and the merge request.
- The two rules are in Automation, where you can pause or change them.

## Keep a connection healthy

Administration › Integrations › Repositories shows one row for each project and repository, with a status in words.

> *Illustration: The health of a connection.*

- **Replace token** puts a new token on the connection. A paused connection starts again.
- **Rotation period** sets a shorter period for one connection.
- **Transfer owner** gives the connection to a different person.
- **Disconnect** stops the connection. The links that exist stay on the tickets.

The owner of the connection and the Admins get a notification before a token expires.

## Your calendar

1. Open the tab Calendar of a project and select **Add to Google Calendar**.

   Result: Youniton shows a calendar address one time.

2. Copy the address into Google Calendar, Outlook or Apple Calendar.

   Result: The calendar shows your due dates and the ends of sprints.

3. Select **Get a new link** to replace the address.

   Result: The old address stops immediately.

Account › Sessions & apps › Connected apps lists the connection. **Disconnect** removes it.

## API tokens for scripts

1. Open Account › Sessions & apps › API tokens.

2. Select **Create token**.

   Result: Youniton asks you to confirm who you are.

3. Type a name and select the abilities of the token.

4. Select the expiry: 30, 90 or 365 days.

5. Copy the secret.

   Result: Youniton shows the secret one time.

A token acts as you, inside its abilities. Select **Revoke** to stop a token. The API documentation gives all calls.

## Other connections

| Connection | Use | Guide |
|---|---|---|
| Signed webhooks | Send events from Youniton to your system, or start a flow from your system. | [Automation](https://docs.youniton.com/guides/automation.md) |
| Help-desk connections | Let the system of a client send requests to a project. | [Help desk](https://docs.youniton.com/guides/help-desk.md) |
| Agents and the MCP server | Let an AI agent or a service read and write project memory with its own identity. | [Docs and memory](https://docs.youniton.com/guides/docs-and-memory.md) |
| Git sync of a space | Keep the pages of a space as Markdown files in a repository. | [Docs and memory](https://docs.youniton.com/guides/docs-and-memory.md) |

## For the Admin: import from Jira

1. Open Administration › Projects, select the project and start the import from Jira.

2. Upload the CSV export of Jira.

3. Map each Jira status to a stage of the project, and each custom field column to a field.

4. Select **Check the file**.

   Result: The check shows the counts and the rows with errors. Nothing is written.

5. Start the import.

   Result: Youniton makes each issue one time, with its comments and epics.

If you import the same file again, Youniton does not make the issues that exist a second time.

## Who can do what

| Role | What this role can do |
|---|---|
| Admin | Permits providers. Connects and disconnects repositories for each project. Transfers owners. Imports from Jira. |
| Product manager, Developer | Connect a repository to the person's own project and replace its token, with the right to connect repositories. |
| Each member | Makes the member's own calendar address and API tokens. |
