Skip to main content

Reference


Task tile fields​

FieldTypeDescription
_idTextRequired. At least one dot, letters, digits, _, -, # and :, for example odsl.home.check-issues
_typeTextAlways VarTaskTile, set by the service
nameTextRequired, at most 120 characters
descriptionTextAt most 400 characters
groupTextcheck, find, build, deliver or another short lower case name. Default other (shown as More tasks)
iconTextA Bootstrap icon name. Default check2-square
priorityNumber0 to 100, default 50
featuredBooleanDefault true. False: only under See all tasks or in a search
enabledBooleanDefault true. False: never shown
keywordsList of textExtra words the search matches
extensionTextThe extension that added the task
requiresList of textExtension ids that must be installed for the task to show
targetObjectRequired: what the task opens (below)
alertsObjectThe alerts that belong to the task (below)
propertiesObjectAnything else an extension wants to keep with its task. Keys may not start with $
created, createdBy, updated, updatedBySet by the service

target​

FieldForDescription
typeAllview, portal or url
extension, viewviewThe extension id and the view's name as the menu shows it (v.name), for example Smart Data
propertiesviewProperties passed to the view, with TASK added (the task id). See Opening a view with context for what each view reads
section, name, tabnameportalThe portal screen; name is required
url, newTaburlThe address (https:// or http://) and whether it opens in a new tab (default true)

alerts​

FieldDescription
filterThe open alerts that belong to the task, as a filter on alert fields, sent as an object or JSON text and kept as JSON text. Default: every open alert. $where, $function, $accumulator and $expr are not allowed
sourcesprivate, common and public (default all three)
followedOnlyDefault true: shared alerts count only for the datasets your team follows
labelThe word for one alert, at most 40 characters (default open alert)
okLabelShown when the task has no open alerts, at most 40 characters (default All clear)

Alerts with the tag task: followed by the task id also belong to that task.


REST API​

The task service holds the tasks of your tenant (it is not split into private and public sources).

RequestDescription
GET task/v1Every task. Filter, sort and page with the usual _filter, _sort, _limit and _skip
GET task/v1/{id}One task
POST task/v1Add or replace a task (the whole tile in the body). Tenant admins and OpenDataDSL only
DELETE task/v1/{id}Remove a task. Tenant admins and OpenDataDSL only

A task that breaks a rule is refused with error 6024 and the reason, for example task Invalid parameter: priority must be a number from 0 to 100, in the x-odsl-error response header.

Saving a task replaces it entirely: send every field you want to keep. Each save keeps the previous copy as a version.

note

The task service used to keep personal to-do tasks. They are no longer shown or created: process time-outs now raise an alert (category process, issue timeout), which counts on Check for overnight production issues.


Permissions​

WhoCan
Everyone with the odsl.home.tasks featureSee the Home page and every task
Tenant admins and OpenDataDSLAdd, change and remove tasks
Installing an extensionAdds the tasks listed in its e.resources.task

The extension installs the feature policy extension.odsl.home for everyone. A task opens a screen the user still needs access to: the screen itself checks its own feature.


The view and the portal​

The Home page is the extension view tasks (Information > Tasks), flagged home = true so the portal can show it as its home screen.

To open a task, the page calls the portal's window.top.odslNavigate with {tile, name, target}. The portal answers true when it opened the target and false when it could not (the extension is not installed in this environment, or the user cannot use the screen), directly or as a Promise; on false the page shows a message, and opens a web page target itself in a new tab. On an older portal without the function the page sends a cancelable odslNavigate event on the portal page instead, and if nothing handles it, opens an extension view in place and a web page in a new tab. See Views for the home flag.