Adobe Workfront · updated

How to search and filter with the Workfront API

To search, call the object's search address and add filters as name=value pairs. A second parameter with the same field name plus _Mod changes how the value is compared, for example contains or between. Filters are case sensitive, and you can sort, count and group filters with OR.

In plain words

A search is a question in an address: 'projects whose status is current', 'tasks under 100 per cent complete assigned to John'. Each condition is one or two small parameters.

Modifiers on Adobe's API basics page

ModifierMeaningExample from Adobe
eqEqual tostatus=cls&status_Mod=eq
neNot equal tostatus=cls&status_Mod=ne
gteGreater than or equal topercentComplete=50&percentComplete_Mod=gte
lteLess than or equal topercentComplete=50&percentComplete_Mod=lte
ltLess than (used in Adobe's task example)percentComplete=100&percentComplete_Mod=lt
isnullField is null; no value neededdescription_Mod=isnull
notnullField is not null; no value neededdescription_Mod=notnull
containsValue contains the textname=Workfront&name_Mod=contains
cicontainsUsed in Adobe's OR example for a name matchOR:1:assignedTo:name_Mod=cicontains
betweenBetween the value and the _Range valueentryDate=$$TODAY-7d&entryDate_Range=$$TODAY&entryDate_Mod=between

Adobe calls this table 'some of the modifiers', so it is not the full list. We list only the ones that appear on that page.

Other search features

  • Related objects: use a colon, as in assignedTo:firstName=John.
  • OR groups: prefix parameters with OR:1:, OR:2: and so on. Filters are not implied across OR levels.
  • filters parameter: put filters in JSON, filters={"username":"user@example.com"}, when a field name such as username would otherwise be read as an authentication parameter.
  • Count: /project/count?status=CUR returns only the number of matches.
  • Sorting: add <field>_Sort=asc, for example entryDate_Sort=asc.
  • map=true returns results as an object indexed by ID instead of an array.

Adobe notes that search requests are case sensitive: _Mod and _Range must be capitalised exactly so, and field names are case sensitive too.

Adobe's examples

GET /attask/api/<supported-version>/project/search?status=CUR

GET /attask/api/<supported-version>/task/search?percentComplete=100
  &percentComplete_Mod=lt
  &assignedTo:firstName=John

OR groups, from Adobe's page

GET /attask/api/<supported-version>/task/search?name=Planning
  &name_Mod=contains
  &OR:1:portfolio:name=FixedAssets
  &OR:1:portfolio:name_Mod=eq
  &OR:1:assignedTo:name=Steve
  &OR:1:assignedTo:name_Mod=cicontains
  &OR:2:parent:name=Final Task
  &OR:2:parent:name_Mod=eq

How to build a search

  1. Look up the object code and exact field names in the API Explorer.
  2. Write each condition as field=value, and add field_Mod when the comparison is not a plain match.
  3. For between, add field_Range with the upper value.
  4. Add fields= with only the fields you need, and a sort so paging is stable.
  5. URL-encode values. The request builder on this site does the encoding and shows the result as curl, fetch and Python.

Related tools and pages on this site

Questions

Why does my filter on username do nothing?

Adobe explains that some parameters are parsed as authentication before they are treated as filters. Put such filters in the filters JSON parameter instead.

Are filters case sensitive?

Yes. Adobe states search requests are case sensitive and says to check the capitalisation of _Mod and _Range if you get an error.

How do I search a date range?

Use the between modifier with a _Range parameter. Adobe's example uses $$TODAY-7d and $$TODAY for the last seven days.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one Adobe Workfront question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →