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
- 2 fields: a number to store the value, and a short text “badge” for display with emoji for a graphic look.
- 1 automation rule that calculates and writes the badge.
Demo formula
- Proxy points from estimate hours: points=⌈max(estimate_hours,1)/4⌉points=⌈max(estimate_hours,1)/4⌉
- Core heuristic: CO2emg=round(2.4⋅points+0.8)CO2emg=round(2.4⋅points+0.8)
- Priority boost: if priority is High or Highest, multiply by 1.21.2 and round again.
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
- Create two custom fields
- Number: “CO₂e saved (mg)”

Write down the customfield_xxxx id from CO₂e saved (mg)”. In my case customfield_11660.
- Place the badge prominently

- Keep “CO₂e saved (mg)” in the details pane or what you want.

Add the automation rule
Trigger
- Work item transitioned → To: Resolved, Completed ( depends on your instance )

Actions
- Create variable → sec
{{#=}}{{issue.timetracking.originalEstimateSeconds}}+0{{/}}

- Create variable → hours
{{#=}}max({{sec}}/3600, 1){{/}}

- Create variable → points (ceiling emulated for positive numbers)
{{#=}}round({{hours}}/4 + 0.499999, 0){{/}}

- Create variable → basemg
{{#=}}round( 2.4*{{points}} + 0.8 , 0 ){{/}}

The block with create variable and some logging .

- IF Priority in (High, Highest)

THEN Edit work item → CO₂e saved (mg)
{{#=}}round( {{basemg}} * 1.2 , 0 ){{/}}

ELSE Edit work item → CO₂e saved (mg)
{{basemg}}

- Refetch
- Edit work item → Eco Badge
🌱 {{issue."CO₂e saved (mg)"}} mg CO₂e saved

Examples
- 4 h, Medium → points=⌈4/4⌉=1points=⌈4/4⌉=1 → CO2emg=round(2.4⋅1+0.8)=3CO2emg=round(2.4⋅1+0.8)=3

- 9 h, High → points=⌈9/4⌉=3points=⌈9/4⌉=3 → base =8=8 → boost =round(8⋅1.2)=10=round(8⋅1.2)=10

- 0 h (missing), Medium → floor to points=1points=1 → =3=3 mg

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