Getting started

Install the app, install the Helm chart, see your first deployment in Jira in about 10 minutes.

About 10 minutes. After four steps, Jira shows what Argo CD runs where, and you do not update work items by hand.

Step Who What you get
1. Install the app and add your Argo CD instance Jira admin A token and a key for the cluster
2. Install the Helm chart DevOps engineer Argo CD sends events to Syncotta
3. Label your applications DevOps engineer Chosen applications are reported
4. Sync and look in Jira Both Your first deployment in Jira

Optional after that: Step 5, the GitHub Action, Move work items automatically, Audit trail and Change gating.

Everything below uses placeholders in <angle brackets>. Copy the real values from the Syncotta admin page. Never commit tokens or keys to Git.

The Helm chart (oci://ghcr.io/syncotta/charts/syncotta), the gate-client image (ghcr.io/syncotta/gate-client) and the GitHub Action (Syncotta/syncotta-action, @v0) are published. The current version of the chart and the image is 0.2.0; see Releases for newer ones.

Before you start

You need:

  • A Jira Cloud site where you are a site admin.
  • An Argo CD instance (open source, v3.x), and kubectl and Helm access to its cluster.
  • Jira work items whose keys, such as PAY-123, can be found. Syncotta looks in the commit message of the synced revision (single-source applications, step 3), in an syncotta.com/issues annotation, and, with the GitHub Action from step 5, in pull request titles and branch names. A deployment without any key is not sent to Jira.

Nothing connects into your cluster. Argo CD sends events out to Syncotta; see How it works.

Step 1: Install the app and add your Argo CD instance

Who: Jira admin.

  1. Install Syncotta from the Atlassian Marketplace. It is free for up to 10 users; larger sites start with a free trial.
  2. In Jira open Settings > Apps > Syncotta (also under Manage apps).
  3. Under Argo CD instances click Add instance. Enter a name, for example Production Argo CD, and confirm.
  4. Copy the two credentials in the dialog. They are shown once:
    • the notifications token (starts with syn_). Step 2 needs it.
    • the HMAC key (64 hex characters). The GitHub Action and the gate need it. Store it in your secret manager now, or create a new one later.
  5. In the instance list note the instance id and, under Endpoints, the Argo CD Notifications address (ends in /events). Step 2 needs both.

Check it: the instance is in the list, with an id and three endpoints (notifications, CI, gate).

If you lose a credential, click New token or New HMAC key on the instance. The old value keeps working for 24 hours, so you can update the cluster without downtime.

The change gate starts Off: Syncotta only shows deployments and never stops a sync.

Step 2: Install the Helm chart

Who: DevOps engineer. Run it once per Argo CD instance. The chart adds the Argo CD Notifications service, triggers and templates that send events to Syncotta. Pick the mode that matches how Argo CD is installed.

Mode argocdValues (default): Argo CD installed with the official argo-cd Helm chart

The first command touches nothing of Argo CD. It only creates a ConfigMap with generated values, which the second command hands to your Argo CD release.

helm install syncotta oci://ghcr.io/syncotta/charts/syncotta --version 0.2.0 \
  -n syncotta --create-namespace \
  --set instanceId=<instance id> --set eventsUrl=<events url>
kubectl get configmap syncotta-argocd-values -n syncotta \
  -o jsonpath='{.data.values\.yaml}' > syncotta-argocd-values.yaml
helm upgrade <argocd release> argo/argo-cd -n <argocd namespace> --reuse-values \
  -f syncotta-argocd-values.yaml \
  --set-string notifications.secret.items.syncotta-token=<notifications token>

Helm replaces lists instead of merging them. If you already have your own notifications.subscriptions, copy them into syncotta-argocd-values.yaml before the upgrade.

Mode configMap: Argo CD installed from plain manifests

The chart takes over argocd-notifications-cm and argocd-notifications-secret. Any other notification config in them is replaced: move it to notifications.extraConfig first. Back up both objects before the first install:

kubectl get cm argocd-notifications-cm secret argocd-notifications-secret -n <argocd namespace> -o yaml > notifications-backup.yaml
helm install syncotta oci://ghcr.io/syncotta/charts/syncotta --version 0.2.0 \
  -n syncotta --create-namespace --take-ownership --force-conflicts \
  --set instanceId=<instance id> --set eventsUrl=<events url> \
  --set argocdUrl=<Argo CD UI base url> \
  --set notifications.mode=configMap \
  --set-string notifications.secret.token=<notifications token>

--force-conflicts is needed with Helm 4 when the objects were applied with kubectl apply --server-side. helm uninstall leaves both objects in place (notifications.keepOnUninstall: true, the default), so Argo CD keeps its notifications config. Remove the Syncotta keys by hand, or restore your backup.

Check it:

helm status syncotta -n syncotta
kubectl get configmap argocd-notifications-cm -n <argocd namespace> -o yaml | grep syncotta

The first command shows STATUS: deployed. The second lists keys that start with service.webhook.syncotta, template.syncotta- and trigger.syncotta-. In argocdValues mode they appear only after the helm upgrade of the Argo CD release. If they are missing there, the upgrade did not run or did not use -f syncotta-argocd-values.yaml.

All chart values are in Helm values.

Step 3: Label your applications (required)

Who: DevOps engineer.

Applications are only reported if they carry the label syncotta.com/payload=default (or syncotta.com/payload=single-source). Without one of these labels nothing is sent and no deployment appears in Jira.

kubectl label application <app name> -n <argocd namespace> syncotta.com/payload=default
  • default: single-source and multi-source applications.
  • single-source: single-source applications only. The event also carries the commit message, so issue keys are read from it. Never use it for multi-source applications: nothing would be sent.
  • An application must match one of the two labels, not both.
  • For many applications, put the label in the ApplicationSet template.

Check it: kubectl get application -n <argocd namespace> -l syncotta.com/payload lists your applications.

Argo CD logs the webhook URL, and on delivery errors the full payload including the commit message, in the notifications controller log. Keep access to that log restricted.

Environments: Syncotta turns the Argo CD destination (cluster and namespace) into a Jira environment. In Jira open Settings > Apps > Syncotta, click Settings on the instance and add rows under Environments, for example namespace = prod-*, type production. The first matching row wins. You can also set annotations on the application. Without a mapping the environment type is unmapped.

Step 4: Sync and look in Jira

Who: both.

  1. Sync a labelled application, or wait for its next sync.
  2. A deployment reaches a work item only if Syncotta finds a key. Single-source label: the commit message of the synced revision contains a key such as PAY-123. Otherwise use the annotation syncotta.com/issues or step 5.

Check it, in this order:

  1. In Jira open Settings > Apps > Syncotta and click Applications on the instance. Your application is listed with its environment, revision, sync, health and since when. This works without issue keys. If the list is empty, go to Troubleshooting.
  2. Open a work item whose key was in the commit. The side panel has an Argo CD section with the environment, the application, its health and sync status. In a software space the Deployments section under Development lists the deployment too. Service Management spaces show no Deployments section; the Argo CD section still works.
  3. Open the space, then Environments in the sidebar. The application is listed there.

Deployments can take a few seconds to appear. What each field means: Use it in Jira.

You are done with the core install. The next steps are optional.

Who: DevOps engineer. Do this when an application is multi-source or the commit message has no key, and for the audit trail. The GitHub Action reports the image digest, commit and issue keys from CI. When Argo CD later deploys that image, the deployment lands on those work items. It also reports the pull request behind the commit (number, link, approvals, merge time). It sends no names and no titles.

In the GitHub repository add the secrets SYNCOTTA_EVENTS_URL (the events address from step 1) and SYNCOTTA_HMAC_KEY, and the variable SYNCOTTA_INSTANCE_ID. Then add the step after the image is pushed:

permissions:
  contents: read
  pull-requests: read   # for the audit trail; without it the action warns and sends the rest
# ...
- uses: actions/checkout@v4
  with:
    fetch-depth: 0
# ... build and push the image, give that step the id "push" ...
- uses: Syncotta/syncotta-action@v0   # or pin v0.2.0 or a commit SHA
  with:
    events-url: ${{ secrets.SYNCOTTA_EVENTS_URL }}
    instance-id: ${{ vars.SYNCOTTA_INSTANCE_ID }}
    hmac-key: ${{ secrets.SYNCOTTA_HMAC_KEY }}
    image: <registry>/<repository>:<tag>@${{ steps.push.outputs.digest }}

Check it: the step log shows no warning, and the step output status is sent. skipped means no issue key was found.

All inputs and limits: GitHub Action.

What next