Move work items automatically
Preview a rule, read its log, switch to active.
When a change reaches an environment and the application is Healthy, Syncotta can move its work items to the status you choose, for example to Done after production. It is off by default, per Argo CD instance, and works in two modes: Preview first, then Active.
You need Getting started done, an environment mapping (Settings > Environments) so that deployments have a type such as production, and Jira admin rights.
Create a rule
-
In Jira open Settings > Apps > Syncotta and click Settings on the instance.
-
Under Environments, check that your destinations map to types. A deployment to an environment with type
unmappedmatches only a rule forunmapped. -
Under Work item transitions choose Preview.
-
Click Add rule and fill in:
Field Meaning Space key The space whose work items this rule moves, for example PAY.Environment type production, staging, testing, development or unmapped. The rule fires when a deployment reaches an environment of this type. Move to status The status name to move to, for example Done.Only from (optional) Comma separated status names. Only work items in one of these statuses move. -
Click Save.
One rule per space and environment type, at most 20 rules per instance, at most 50 work items per deployment.
Example: space PAY, production, move to Done. A work item In Progress or In Review moves to Done when its change is healthy in production. For a move inside one status category, for example In Review to In QA on staging, add In Review under Only from.
Preview: read the log
In Preview nothing moves. Deploy something that carries a work item of the space, then click Transitions on the instance. The list shows the last 50 decisions, newest first, with the time, work item, environment type, the status it was in, the target and the outcome:
| Outcome | Meaning |
|---|---|
| would move | Preview only. In Active mode it would have moved. |
| moved | Active mode moved it. |
| already there | The work item already has the target status. |
| moved before | Syncotta already moved it for this environment type and revision. It does not move it again. |
| not in from statuses | The status is not in the rule’s Only from list. |
| would go backwards | The target is in the same or an earlier status category. Syncotta never does that. |
| no transition | The workflow has no direct step from the current status to the target. Add one in the workflow, or pick a target reachable in one step. |
| Jira refused (400 or 403) | A validator, a required field or a permission blocked it. The Syncotta app needs the “Transition work items” permission in the space. |
| not found | The work item no longer exists or is not visible. |
Nothing listed after a deployment: transitions are Off, no rule matches the space and environment type, or the application was not Healthy yet. More in Troubleshooting.
Switch to Active
When the Preview log shows only moves you want, open Settings again, choose Active and save. From the next deployment, work items move for real. Choose Off to stop.
What it never does
- It never moves a work item backwards. Without Only from, it moves only to a later status category (To Do, then In Progress, then Done). With Only from, the work item must be in one of the listed statuses.
- It moves each work item once per environment type and revision. If someone moves it back by hand, the same deployment does not move it again.
- It does not move work items of a deployment that is not Healthy.
- It does not skip your workflow. Jira must offer a direct transition to the target status, and its validators and permissions still apply.
Comment when an application turns Degraded
In Settings tick Comment on the work items of a deployment when the application turns Degraded within 15 minutes after it. Off by default and independent of transitions. Each work item of that deployment gets one comment per environment and revision, which names the application, the environment and the revision and links to Argo CD. Turn it off again in the same place.