A small signal can change behavior.
This micro badge shows “🌱 3 mg CO₂e saved” right in your issue view. You can use the same for other badges or calculate values.
It’s intentionally heuristic, not a lifecycle calculation. The point is to demonstrate how to use Jira Automation and a “graphic‑style” text field to surface a simple, catchy metric with built‑in features.
What you’ll build
Demo formula
Implementation note: estimate_hours is taken from Original estimate (converted from seconds to hours). I do not use Story Points and we ignore Remaining estimate for determinism.
Build plan
Write down the customfield_xxxx id from CO₂e saved (mg)”. In my case customfield_11660.
Add the automation rule
Trigger
Actions
The block with create variable and some logging .
THEN Edit work item → CO₂e saved (mg)
{{#=}}round( {{basemg}} * 1.2 , 0 ){{/}}
ELSE Edit work item → CO₂e saved (mg)
{{basemg}}
Examples
For a real‑world indicator, you’d need much richer, verifiable data beyond a simple heuristic: asset inventories and configurations (JSM Assets/CMDB), deployment and runtime telemetry (CI/CD and monitoring), cloud and data center energy mix and usage, baseline and counterfactual assumptions, embodied emissions of hardware and services, and governance rules for scopes and boundaries (e.g., which activities are in scope, measurement periods, and data quality grades). In practice, that means fetching and reconciling records from Assets and other authoritative sources (billing exports, provider APIs, data warehouses) and documenting the calculation method so the badge reflects traceable, auditable inputs rather than a minimalist demo.
Have fun to play around .
Sources
Kai Krause
Senior Technical Consultant
VI2VA
Brunswick
51 accepted answers
0 comments