Inspiration

In the EU, a shop that announces a price reduction must show the "prior price": the lowest price it applied in at least the 30 days before the reduction (Directive 98/6/EC, Article 6a). In September 2024 the Court of Justice ruled in case C-330/23 (Aldi Süd) that a reduction announced as a percentage, or as a promotional statement such as "price highlight", must be calculated from that lowest price. The Court's own press release (No 152/24) shows the brochure: bananas at €1.29 with "−23%" and a struck-through €1.69, while the lowest price of the previous 30 days was €1.29. The real reduction was zero.

It keeps happening. In the 2022 Black Friday sweep, 13 consumer authorities monitored 16,000 products on 176 websites and found violations on at least 43% of them. In the 2025 Black Friday and Cyber Monday sweep, authorities checked 314 online traders and found that 30% referenced discounts incorrectly (European Commission, 26 March 2026).

The error is easy to make by hand and easier to automate: a "was" price is a field anyone can type, and an AI copywriter will happily compute "−18%" from whatever "was" price it is given. The real reference is a computation over the price history, and earlier promotions count too. We wanted that computation to happen once, in the place where promotions are planned and approved, and to give people and agents the same answer.

What it does

  • A promotion is a Jira work item. It works with any project, including Jira's Campaign management template. Each line has a SKU, the new price, and what the copy will claim: a struck-through prior price, a percentage, or a promotional label.
  • Code computes every number. From the stored price history and the market's rule profile, Struck computes for each line the window (calendar days in the market's time zone, so a daylight-saving change does not shift it), the prior price and when it applied, the real reduction, the largest percentage the price supports, and the highest price that would support the claimed percentage. Each problem gets a code: prior price missing, reference overstated, percentage overstated, no reduction at all, cannot verify (history too short, or a product launched inside the window), exemptions, and progressive markdowns.
  • Market profiles with sources. The EU baseline applies Article 6a without national options. The Germany profile adds the options in § 11 of the Preisangabenverordnung that we verified in the official text: an uninterrupted progressive markdown keeps the price from before its first step; perishable goods reduced because of imminent spoilage are exempt when this is made clear to consumers; individual reductions are exempt. Every result names its profile and sources.
  • A gate in the workflow. A workflow validator holds the transition to Approved while any line fails or cannot be verified, and names the lines: "Struck: 2 price claims must be fixed before publishing: BANANA-1KG (S2, S5, S4); PINEAPPLE (S2, S5)".
  • Fixes, computed. One click shows the real prior price with the supported percentage, removes the claim, or sets the price that makes the claim true. Struck also writes the label from the computed numbers in English and German ("−15% €10.99 · Lowest price in the last 30 days: €12.99").
  • Visible in Jira. A panel on the work item with a chart (the daily price and the prior price across the window), a global page with all promotions, price data, rule profiles and sample data, and an indexed issue property: issue.property[struck].blocking > 0 finds every blocked promotion. A daily re-check catches new price data that changes the reference.
  • The Struck agent in Rovo checks a promotion, explains why a line failed, reads a free-text promotion brief into lines, and saves lines, applies fixes or creates fix tasks only after the person confirms Rovo's review card.
  • For any agent, through MCP. The four read actions (get the prior price, check a price claim, check a promotion, explain a line) are listed in a rovo:mcp module. A customer's own Rovo Studio agent, built without code, can call them before it writes copy.

How we built it

  • Forge for Jira: a global page and an issue panel in UI Kit (DynamicTable, LineChart, Tabs), an indexed jira:entityProperty (struckOverall, struckBlocking, struckMarket), a jira:workflowValidator, a daily scheduledTrigger, Forge storage for price histories, a rovo:agent with eight actions, a rovo:skill, and a rovo:mcp module with the four read actions.
  • A pure engine (no Forge imports): integer cents throughout (no floating point), market-time-zone calendar windows, the minimum over price segments that overlap the window, campaign continuity for progressive markdowns, a rounding policy (the supported percentage rounds down; the highest price for a claim rounds down to the cent), and a fingerprint of the profile and of the data stored with every result.
  • Golden cases from official sources. The tests reproduce the Court's banana and pineapple numbers, and both worked examples on the Commission's sweep page: "−40%" against €39.99 when the 30-day low was €27.99, so at most 14%; and a rise from €19.48 to €21.66 presented as "−24%" against a fake €28.81 (an 11% increase). An independent brute-force oracle samples every price change and every hour of the window on random histories, and metamorphic tests check that higher prices never lower the prior price and that shifting time changes nothing. 27 tests, all passing.
  • No external calls. Struck stores prices, SKUs, promotion lines and a fix log (before, after, when, via). It stores no account IDs, names or email addresses.

Challenges we ran into

  • Earlier promotions count. On 5 December, a TV's prior price is not its regular €799 but the €699 it sold at on Cyber Monday, because that price is inside the window. Promotions depend on each other, so Struck re-checks every promotion after a price import and every day.
  • "To" is ambiguous. Our first labels said "the lowest price from 2026-10-28 to 2026-11-27", but the window ends at the start of 27 November. People read "to" as inclusive, so labels now name the last full day: "2026-10-28 to 2026-11-26".
  • Checking the agent's word. In one test, our agent said a promotion was ready to go live while the panel showed a failing line. Rovo's debug view showed the action's raw output: a misplaced click on "Apply" had changed the price to €0.99, so −23% was now true and the agent was right. Every agent answer can be traced to an action result, and our logs record each call (tool=check-promotion ok=true).
  • Agents send JSON in more than one shape. The agent sometimes passed the promotion lines wrapped in backticks, with escaped quotes. Struck now accepts exactly those forms (plain JSON, backticks, a code fence, a JSON string) and rejects anything looser, with tests for each.
  • Cancelling must mean nothing changed. When the person cancels Rovo's review card, the agent's instructions say to report that nothing was changed. In testing it answered "I have not saved or checked the lines because the action was cancelled."

Accomplishments that we're proud of

  • The engine reproduces every number in the Court's banana and pineapple example and in both Commission sweep examples.
  • A no-code Rovo Studio "Promo Copywriter" was asked for a banner saying "was 799, −18%". It called Struck's tools and wrote "55-inch TV: Now €649.00 (was €699.00, −7%)", explaining that the lowest price in the 30 days before the promotion was €699.00. Struck's production log shows both calls (tool=get-prior-price ok=true, tool=check-price-claim ok=true).

What we learned

  • A "was" price is not a field to fill in; it is a minimum over a window, and the window can include last week's sale.
  • The rule is short, but its edges are where the money is: the window's last day, time zones, progressive markdowns, new products and perishables.

What's next

  • More market profiles, each with the national options verified by a local reviewer before it is marked verified.
  • Price history from commerce platforms, and per-channel prices (store and online).
  • Checking Confluence campaign pages and attached flyers for claims, not only work items.

How it meets the technology requirement

Struck is built entirely on Atlassian Forge for Jira and makes no external calls. It integrates:

  • Jira: a global page, an issue panel, an indexed entity property for JQL, a workflow validator, a daily scheduled trigger, fix-task sub-tasks;
  • Rovo: an agent with eight actions (the UPDATE and CREATE ones go through Rovo's review card) and a skill;
  • Atlassian MCP: a rovo:mcp module with four read tools that customer-built agents can use.

Bonus prize: Best app with Atlassian MCP

AI copywriters compute discounts from whatever "was" price they are given, which is exactly the error in the Aldi case. Struck's MCP tools give any agent the computed reference instead:

  • get-prior-price returns the lowest price in the market profile's window before a date, when it applied, and the window.
  • check-price-claim checks a planned claim and returns the codes, the supported percentage, the highest price for the claimed percentage and a label built from the computed numbers.
  • check-promotion and explain-line check and explain a whole promotion work item.

On our demo site we built a Rovo Studio agent "Promo Copywriter (test)" with no code, added only "Get the prior price" and "Check a price claim", and told it never to compute a discount itself. Asked for "was 799, −18%" on a TV, it rejected the claim and wrote "55-inch TV: Now €649.00 (was €699.00, −7%)". Struck's production log shows both calls; the log line shows no Struck agent context, because the calls came from the customer's agent. Writes are deliberately not tools: changing a promotion needs a person.

Open-source skill.md (Apache-2.0) for third-party agents:

---
name: struck-price-claims
description: Check a price-reduction claim (a percentage, a struck-through "was" price or a promotional label such as "deal") against the lowest price charged in the 30 days before the reduction, using Struck's computed prior price. Use it before writing or approving promotional copy, a banner, a flyer line or a product page that announces a reduction in the EU or EEA.
license: Apache-2.0
---
# Check a price-reduction claim

The reference for any announced reduction is the prior price: the lowest price the trader applied in the
period before the reduction (at least 30 days under EU law; the market profile says which period and options
apply). It is often not the last price. Never compute a percentage from the last price, and never compute a
discount or a prior price yourself.

1. Before you write a reduction, call `get-prior-price` with the market profile code (for example `DE` or
   `EU-BASE`), the SKU and the first day of the promotion (YYYY-MM-DD).
   - If `status` is `cannot-verify`, say the price history does not cover the window (or the product is too
     new) and do not write a reduction. Quote `reason`.
2. Call `check-price-claim` with the claim you plan to write: `newPrice`, and `shownPrior` and/or
   `shownPercent` (a promotional label without numbers is `claimType: statement`).
3. Read `verdict`:
   - `ok`: you may use the claim. `labels.en` (and `labels.de`) is a label built from the computed numbers.
   - `fail`: do not use the claim. Each entry in `codes` says why. Rewrite with the computed numbers:
     the prior price `priorPrice`, at most `supportedPercent`, or the price `maxPriceForClaim` that would
     support the percentage that was asked for. Or write the copy without a reduction.
   - `cannot-verify`: do not write a reduction.
4. Quote numbers exactly as returned, with the market profile they came from.
5. You report what the configured rules compute from the stored price history. This is not legal advice;
   send questions beyond the result to the team's reviewer.

Sources

Privacy and support

  • Struck runs entirely on Atlassian Forge and makes no external calls.
  • It stores price histories (market, SKU, product name, dates, prices), promotion lines, check results and a fix log in Forge storage and one issue property per promotion on the customer's site.
  • It does not store account IDs, names or email addresses.
  • Struck reports what the configured rules compute from the customer's data. It is not legal advice.
  • Questions or problems: leave a comment on this Devpost page.

Built With

Share this project:

Updates

Submission history