try_formula
Try a formula on the newest issues of a project before saving it as a formula field: returns each issue's result, or the mistake in the formula. FORMULA language: fields by name in curly braces {Price}; numbers, "text", true/false; + - * / % (date + days, date - date = days), & joins text; = != < <= > >=; and, or, not; functions if(c,a,b), ifs(c1,v1,...,else), empty(x), round(x,n), floor, ceil, abs, min, max, sum, concat, length, lower, upper, contains(text,part), text(x), number(x), today(), date("YYYY-MM-DD") or date(y,m,d), days_between(a,b) (= b - a in days), add_days(d,n), year, month, day, convert(amount, "UAH", "USD", date?) and rate("USD", date?) by the National Bank of Ukraine rate of that day; a payments field alone = what was received, expected(p), payments_total(p), last_payment(p), next_payment(p); issue properties title, status, status_kind, is_done, is_closed, priority, assignee, due_date, start_date, created, updated, labels, client, milestone. Empty numbers count as 0 in arithmetic. Example: if({Paid} >= {Price}, "Paid", if({Pay by} < today(), "Overdue", "Waiting")).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"formula": "<formula>"
},
"name": "try_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | the name of the formula field being edited, if any (it may not use itself) | |
| formula | Yes | formula over the issue's fields, e.g. "{Price} * {Hours}" | |
| project | Yes | project key or id, e.g. "WEB" |