Writing Formulas

Learn how to write formulas in TaskFord, reference task fields, use operators, work with dates and empty values, and build practical calculations.

Formula fields use formulas to calculate values from a task’s fields. This page explains the formula syntax, operators, field references, result types, and common patterns you can use when building formulas in TaskFord.

1. Formula basics

1.1 Formula rules

A Formula field must follow a few basic rules:

  • A formula always starts with =.
  • A formula can be up to 2,000 characters long.
  • Function names are not case-sensitive. For example, =round(1.25, 1) and =ROUND(1.25, 1) both work.
  • Separate function arguments with a comma (,). A semicolon (;) gives an error.
  • Use a full stop for decimals, such as 0.5.
  • Put text in double quotes, such as "Overdue".
  • Spaces between parts of the formula are fine: = {{estimatedTime}} / 60.
  • TRUE and FALSE can be written with or without parentheses.

1.2 Operators

Operators let you perform calculations, compare values, and combine text.

Operator Meaning Example Result for WEB-42
+ Add ={{customfield_10001}} + {{customfield_10002}} 13
- Subtract, or make a number negative ={{customfield_10003}} - {{customfield_10004}} 250
* Multiply ={{customfield_10020}} * {{customfield_10009}} 112.5
/ Divide ={{estimatedTime}} / 60 2.5
^ Raise to a power =2^3 8
% Percent (divides by 100) =50% 0.5
& Join text ={{key}} & " · " & {{summary}} WEB-42 · Redesign onboarding flow
= Equal to (text comparisons ignore upper/lower case) ={{status}} = "in progress" true
<> Not equal to ={{status}} <> "Done" true
< > <= >= Less than, greater than, and so on ={{estimatedTime}} > 60 true
( ) Group a calculation =({{customfield_10003}} - {{customfield_10004}}) / {{customfield_10003}} 0.20833333333
{ } A list of values. Commas separate items and semicolons separate rows. =SUM({2, 3, 5}) 10

2. Referencing fields

You refer to a field by putting its reference between double curly braces:

{{reference}}

When a formula runs for a task, each reference is replaced with that task’s value for the field.

2.1 System fields

These task properties can be used in any formula:

Reference Field What the formula receives
{{key}} Key The task key as text, for example WEB-42
{{summary}} Summary The task summary as text
{{status}} Status The status name, for example In Progress
{{priority}} Priority The priority name, for example High
{{assignee}} Assignee The assignee’s display name
{{group}} Group The group name
{{board}} Board The board name
{{taskType}} Task Type The task type name, for example Story or Bug
{{startDate}} Start date A date
{{endDate}} End date (due date) A date
{{estimatedTime}} Estimated Time A number of minutes. For example, 2h 30m is 150.
{{color}} Color The task’s color value, as text

Other system fields, such as the description, watchers, comments or attachments, can’t be referenced.

Status, Priority, Assignee, Group, Board, and Task Type return the name shown in TaskFord. For example, compare a status using {{status}} = "Done". If someone renames a status or priority, formulas that compare against the old name stop matching.

2.2 Custom fields

A custom field is referenced by its field key, which looks like customfield_10001:

{{customfield_10001}}

You don’t need to remember field keys. Type {{ in the Formula editor and select the field by name. The editor inserts the key for you and shows the field’s name in the Field references list.

The field name itself is never used in the formula, so {{Story Points}} doesn’t work. If you rename a field, your formulas keep working.

Field keys differ from site to site. The keys used in this guide, such as customfield_10001, are examples only. Use the suggestions in the Formula editor to insert the keys from your own board.

The following custom field types can be referenced:

Custom field type Can be referenced? What the formula receives
Text Yes Text
Text Area Yes Text
Number Yes A number
Date Yes A date
Single Select Yes The selected option’s name, as text
Multi Select Yes A list of the selected option names, in the order the options are defined on the field (not the order they were picked). Use it with list functions such as COUNTA, COUNTIF or TEXTJOIN.
Formula Yes The result of that field’s formula on this board
User No —
Comment No —
Attachment No —

Only fields that are on this board can be referenced.

See the example

The Result for the WEB-42 column uses the sample board described in #7. The sample board used in this guide.

2.3 Other Formula fields

A formula can use the result of another Formula field on the same board:

={{customfield_10020}} * {{customfield_10009}}

Here customfield_10020 is the Estimated Hours Formula field and customfield_10009 is an Hourly Rate Number field. The result is an estimated cost for each task.

  • You can chain Formula fields as deep as you like. TaskFord always works out the fields in the right order.
  • A formula can’t refer to itself, directly or through a loop. For example, if A uses B and B uses A, both show #CYCLE!. The editor doesn’t suggest the field you’re editing, to help you avoid this.
  • If a referenced Formula field shows an error, every formula that uses it shows an error too.
  • If a referenced Formula field has no formula on this board, it counts as empty.

2.4 Rules for references

Rule Example
References are case-sensitive. {{status}} works. {{Status}} and {{STATUS}} give #REF!.
Spaces just inside the braces are ignored. {{ status }} works.
Use the reference exactly as listed. System fields drop the “Id” ending. {{status}} works. {{statusId}} gives #REF!.
A reference inside quotes is plain text. ="{{status}}" shows the text {{status}}.
Two references side by side need an operator between them. ={{key}} & {{summary}} works. ={{key}}{{summary}} gives #ERROR!.
Spreadsheet cell addresses aren’t supported. =A1, =$A$1 and =Sheet1!A1 give #REF!.

3. How results are displayed

Formula results can return numbers, text, dates, times, lists, or empty values.

Result type How it appears Example
Number Plain digits with a decimal point. There are no thousands separators or currency symbols, and long decimals are shown in full. Use ROUND to tidy them. =1/3 → 0.33333333333
Text As written Overdue
True / false true or false, in lower case ={{estimatedTime}} > 60 → true
Date In your date format preference =EDATE({{startDate}}, 1) → 02/04/2026
Date and time Your date format followed by hh:mm:ss =NOW() → 09/03/2026 16:00:00
Time hh:mm:ss =TIME(14, 30, 0) → 14:30:00
Empty An empty cell A task with no assignee: ={{assignee}}
List Only the first item is shown. Combine lists into one value with a function such as TEXTJOIN or COUNTA. ={1, 2, 3} → 1

If you want a percentage sign or a specific date layout, use TEXT:

=TEXT(0.25, "0%") gives 25%.

=TEXT({{endDate}}, "YYYY-MM-DD") gives a date in a fixed layout.

4. Working with empty fields

Tasks often have fields that haven’t been filled in yet. Here is how an empty value behaves:

Empty field type Inside a formula Tip
Number, Estimated Time Counts as 0 in +, - and *. Dividing by it gives #DIV/0!. Guard with IF({{customfield_10002}} = 0, …) or IFERROR(…).
Date, Start date, End date Counts as day zero in calculations, as in Excel. For example, YEAR of an empty date is 1900, and TEXT shows it as 00/01/1900. Always check with ISBLANK(…) before calculating with dates.
Assignee, Status and other system names Empty IF(ISBLANK({{assignee}}), "Unassigned", {{assignee}})
Text, Text Area, Single Select Empty text. A Text field that was filled in and then cleared may not count as blank for ISBLANK. Compare with empty text instead, which works in both cases: IF({{customfield_10008}} = "", "No code", {{customfield_10008}})
Multi Select An empty list. COUNTA and COUNTUNIQUE give 0. Use COUNTA to count the selected options.

5. Working with dates

Keep the following points in mind when using dates in formulas:

  • Dates follow your date format. Formula results show dates in the format set in your personal preferences: DD/MM/YYYY, MM/DD/YYYY or YYYY/MM/DD. Any other preference is treated as DD/MM/YYYY. Two people looking at the same board may therefore see the same date written differently.
  • DATEVALUE reads typed dates in the viewer’s format. DATEVALUE("01/03/2026") means 1 March 2026 to someone using DD/MM/YYYY, but 3 January 2026 to someone using MM/DD/YYYY.
  • Other functions read typed dates month first. Date text passed straight to a date function or used in arithmetic, such as NETWORKDAYS("01/06/2026", …), is read as MM/DD/YYYY (or YYYY-MM-DD) whatever your preference. To get the same result for everyone, build fixed dates with DATE(year, month, day), for example DATE(2026, 3, 1).
  • Start and due dates carry a time, so they are converted to your own timezone before they are used. A task that starts at 23:30 UTC on 31 December starts on 1 January for someone in Ho Chi Minh City.
  • Date fields you add yourself hold a day without a time, so every viewer reads the same day, whatever their timezone.
  • Dates run from 1900 to 9999. A result past 31/12/9999, such as WORKDAY({{startDate}}, 1E+300), gives #NUM!. A date result outside that range from plain arithmetic shows ######, as in Excel.
  • Subtracting dates gives a number of days: ={{endDate}} - {{startDate}}. Adding a number to a date gives a date: ={{startDate}} + 7.
  • Today’s date. TODAY() and NOW() use the date and time on your device when the table is displayed.

6. The sample board used in this guide

The examples and the function reference use a single task, WEB-42, on a board with these fields. The results assume today is 09/03/2026 and a DD/MM/YYYY date format.

System fields

Field Value on WEB-42
Key WEB-42
Summary Redesign onboarding flow
Status In Progress
Priority High
Assignee Sam Lee
Group Sprint 12
Board Website
Task Type Story
Estimated Time 2h 30m (150 minutes)
Start date 02/03/2026 (a Monday)
End date 13/03/2026 (a Friday)

Custom fields

Field Type Reference Value on WEB-42
Points Completed Number {{customfield_10001}} 5
Story Points Number {{customfield_10002}} 8
Budget Number {{customfield_10003}} 1200
Actual Cost Number {{customfield_10004}} 950
Stage Single Select {{customfield_10005}} Blocked
Components Multi Select {{customfield_10006}} Frontend, Design, QA
Milestone Date Date {{customfield_10007}} 20/03/2026
Project Code Text {{customfield_10008}} PRJ-ALPHA-07
Hourly Rate Number {{customfield_10009}} 45
Estimated Hours Formula {{customfield_10020}} =ROUND({{estimatedTime}} / 60, 1) → 2.5
Estimated Cost Formula {{customfield_10021}} ={{customfield_10020}} * {{customfield_10009}} → 112.5

7. Practical examples

The examples start simple and build up. Replace the customfield_… keys with the keys of the matching fields on your board.

7.1 Show Estimated Time in hours

Problem. Estimated Time is stored in minutes, but your team plans in hours.

=ROUND({{estimatedTime}} / 60, 1)

Result. 2.5 for WEB-42 (150 minutes). A task with no estimate shows 0.

Why. It gives a quick, sortable-at-a-glance effort column in the unit your team uses.

7.2 Build a readable task label

Problem. You want one column that identifies a task at a glance, for example to read out in stand-ups.

=CONCATENATE("[", {{taskType}}, "] ", {{key}}, " · ", {{summary}})

Result. [Story] WEB-42 · Redesign onboarding flow

Why. It combines several system fields into one line.

7.3 Show who is responsible, even when nobody is

Problem. Empty assignee cells are easy to miss.

=IF(ISBLANK({{assignee}}), "Unassigned", {{assignee}})

Result. Sam Lee. A task without an assignee shows Unassigned.

7.4 Count how long a task runs

Problem. You want each task’s duration in calendar days and in working days.

=DAYS({{endDate}}, {{startDate}})
=NETWORKDAYS({{startDate}}, {{endDate}})

Result. 11 calendar days between the start and end dates, and 10 working days (Monday to Friday, counting both the start and end day).

Why. Long-running tasks stand out, and you can compare planned duration against effort.

Guard against missing dates. Empty dates count as day zero, which produces meaningless numbers. Show an empty cell instead:

=IF(OR(ISBLANK({{startDate}}), ISBLANK({{endDate}})), "", DAYS({{endDate}}, {{startDate}}))

7.5 Days until the due date

Problem. You want to see how much time is left on each task.

=IF(ISBLANK({{endDate}}), "No due date", DAYS({{endDate}}, TODAY()))

Result. 4 (from 09/03/2026 to 13/03/2026). A negative number means the task is past its due date.

Why. It updates every day on its own, so the column is always current.

7.6 Flag overdue work

Problem. You want a clear warning on tasks that are past due and not finished.

=IF(AND(NOT(ISBLANK({{endDate}})), {{endDate}} < TODAY(), {{status}} <> "Done"), "Overdue", "On track")

Result. On track for WEB-42, which is due 13/03/2026.

Why. It combines a date, today’s date and the status into one signal. Replace "Done" with the name of your board’s final status.

7.7 Show progress as a percentage

Problem. Your tasks track Points Completed and Story Points in two Number fields, and you want a progress figure.

=IF({{customfield_10002}} = 0, "", ROUND({{customfield_10001}} / {{customfield_10002}} * 100, 0) & "%")

Result. 63% (5 of 8 points). Tasks without Story Points show an empty cell instead of #DIV/0!.

Why. It turns two raw numbers into a figure anyone can read. The & "%" makes the result text; leave it out if you want a plain number.

7.8 Track budget use

Problem. You record a Budget and an Actual Cost on each task.

=ROUND({{customfield_10004}} / {{customfield_10003}} * 100, 1)
=IF({{customfield_10004}} > {{customfield_10003}}, "Over budget", "Within budget")

Result. 79.2 (per cent of the budget spent) and Within budget.

7.9 Turn Priority into a score

Problem. You want a numeric priority score for triage.

=SWITCH({{priority}}, "Highest", 5, "High", 4, "Medium", 3, "Low", 2, "Lowest", 1, 0)

Result. 4. Any priority not listed gets the fallback 0.

Why. A number is easier to compare and combine with other values than a name. Use the priority names defined on your site.

7.10 Highlight blocked work from a Single Select field

Problem. Your Stage field has a Blocked option and you want it to stand out.

=IF({{customfield_10005}} = "Blocked", "Needs attention", "")

Result. Needs attention. Tasks at any other stage show an empty cell.

7.11 Work with a Multi Select field

Problem. Your Components field lets a task belong to several areas.

Count the selected components:

=COUNTA({{customfield_10006}})

List them in one cell:

=TEXTJOIN(", ", TRUE, {{customfield_10006}})

Check whether one particular option is selected:

=IF(COUNTIF({{customfield_10006}}, "Frontend") > 0, "Yes", "No")

Result. 3, Frontend, Design, QA and Yes.

Why. A Multi Select field gives the formula a list, so use list functions like these. Referencing a Multi Select field on its own, ={{customfield_10006}}, shows #VALUE! when more than one option is selected.

7.12 Size tasks into buckets

Problem. You want a simple Small, Medium or Large label based on the estimate.

=IFS({{estimatedTime}} >= 480, "Large", {{estimatedTime}} >= 120, "Medium", TRUE, "Small")

Result. Medium (150 minutes). IFS checks the conditions in order, and the final TRUE catches everything else.

7.13 Compare against a milestone

Problem. Each task has a Milestone Date, and you want to know if the task is due before it.

=IF({{endDate}} <= {{customfield_10007}}, "Before milestone", "After milestone")
=DAYS({{customfield_10007}}, {{endDate}})

Result. Before milestone, and 7 days of buffer.

7.14 Format and derive dates

Show the due date in a fixed layout for everyone:

=TEXT({{endDate}}, "YYYY-MM-DD")

Show the week the task is due in:

="W" & ISOWEEKNUM({{endDate}})

Find a follow-up date five working days after the due date:

=WORKDAY({{endDate}}, 5)

Result. 2026-03-13, W11 and 20/03/2026.

7.15 Build a Formula field on another Formula field

Problem. You already have an Estimated Hours Formula field (example 6.1) and an Hourly Rate Number field. You want an estimated cost.

Create a second Formula field, Estimated Cost, with:

=ROUND({{customfield_10020}} * {{customfield_10009}}, 2)

Result. 112.5 (2.5 hours × 45).

Why. You define “hours” once and reuse it. If you later change how Estimated Hours is calculated, Estimated Cost follows automatically.

7.16 Estimate daily effort

Problem. You want to know how many hours per working day a task needs.

=IFERROR(ROUND({{estimatedTime}} / 60 / NETWORKDAYS({{startDate}}, {{endDate}}), 2), "")

Result. 0.25 hours per day (2.5 hours over 10 working days).

Why. It helps spot tasks that are squeezed into too short a window. IFERROR keeps the cell empty if the calculation can’t be done.

7.17 Pull parts out of a text field

Problem. Your Project Code field holds codes like PRJ-ALPHA-07, and you want only the project name.

=MID({{customfield_10008}}, FIND("-", {{customfield_10008}}) + 1, 5)

Result. ALPHA

Other useful text functions: LEFT({{customfield_10008}}, 3) gives PRJ, and SUBSTITUTE({{customfield_10008}}, "-", " ") gives PRJ ALPHA 07.