Movatterモバイル変換


[0]ホーム

URL:


Asana Docs

App components can be used on the surface of tasks in Asana. Users install apps on a project, then the app can be used on any individual task in the project.

App components on tasks are initiated with theentry point. The entry point can open either amodal form or alookup. Typically the modal form is used to create a new object or 3rd party resource (like a Zoom meeting) and the lookup is used to attach an existing 3rd party resource (like a Jira issue). If/when a 3rd party resource is attached (this is why we often refer to this as an attachment), then it can be displayed as awidget.

CapabilityDescription
Entry pointConfigure the button in tasks that initiates the lookup and modal form. To configure this, one or both of these capabilities must be configured first.
Modal formBuild a custom form to allow users to create new resources. This form gets shown in a modal when a user clicks the entry point on a task.
LookupShow a text input to allow users to find and attach resources to tasks. Users can paste a URL, ID, or pick from an optional typeahead.
WidgetDisplay a dynamic, custom widget card in tasks that shows data from an attached resource.

📘

Try app components with our interactive UI builder

For hands on learning, we recommend using our interactiveUI Builder to see how app component responses are generated.

Entry point

The entry point allows users to initiate thelookup andmodal form components from tasks. The entry point component does not have any schema or API, it is purely an Asana provided, developer configured UX interaction for users to access your app on a task.

To configure the entry point, one or both of the above capabilities must be configured first. Ifonly one of these capabilities is configured, the entry point takes the form of a button. Ifboth of these capabilities above are configured, the entry point is rendered as a dropdown menu. Configure the entry point text in the developer console.

Configuration

PropertyDescription
Lookup action textClickable action text that allows users to initiate a lookup.
Modal form action textClickable action text that allows users to initiate a modal form.

Modal form

A modal form allows users to fill out a dynamic app-controlled list of fields. The number of fields can range from 0-20. Once a form is submitted, the information is sent to the app server and Asana will perform different functions depending on what the server responded with. If the app wants to cause additional changes within Asana, the app server will need to make the changes via the API.


Dynamic forms

You can includebranching logic in your modal forms to create a dynamic user experience. That is, forms can change according to how the user responds to specific questions.

on_change_callback

Under the hood, branching is made possible byon_change events. While a user is filling out a form, the app server can receiveon_change requests. These requests include what the user has changed, and allow the app server to respond with an updated form (e.g., with new fields). To take advantage ofon_change events, you may set a form field'sis_watched value totrue and anon_change_callback endpoint to hit with updates.

See theon_change_callback property in the200 response to theform metadata request (alternatively, see theFormMetadata schema). The request sent to that endpoint is theon change callback request.

on_submit_callback

on_submit events allow the modal form to be submitted once all required fields are completed. As such, this property should only be provided during the "final branch" of your form. If theon_submit_callback property is omitted,the submission button will be disabled.

See theon_submit_callback property in theFormMetadata schema for an example.


Configuration

PropertyDescription
Form metadata URLA URL that Asana uses to request data from the app about fields it should display in the modal form.

Modal form documentation

View schemas related tomodal formshere in the API reference.

Endpoints


Lookup

Users can send a search term to the app server or initiate a typeahead lookup. The term is often a URL, the title of an external resource, or a custom typeahead search. The app server then responds with a resource or an error.

Note: Code defensively around typeahead results as the underlying search logic will change over time without warning.

Configuration

PropertyDescription
Resource attach URLA URL that Asana will make a request to when a user submits a value to attach (i.e., when clickingAdd).
Placeholder textOptional. Placeholder action text that appears in the lookup input field after the user clicks on the lookup action text.
Resource typeahead URLA URL that Asana will make a request to when a user types into a lookup field.

Lookup documentation

View schemas related tolookupshere in the API reference.

Endpoints


Widget

840

A widget is a card that is used to show data about an external resource. Apps can control what layout they prefer by supplying their preferredtemplate. You can see the available templates in theEnumerated Values section ofresponse schema or in the UI Builder.

The app server controls the content of this Widget. When an Asana user's browser navigates to a widget, Asana sends a request to the registered app server. As long as the response from the server is valid the widget will display.

How does Asana determine when a widget should be shown? When a task is opened in Asana, it checks each attachment on the task. If an attachment has a URL that fits with an app's registeredmatch URL pattern (ex:https:\/\/.*.atlassian.net\/.*) then it shows a Widget. AGET request is sent to the app'swidget metadata URL, including URL parameters liketask,user, andworkspace.


Configuration

PropertyDescription
Widget metadata URLA URL that Asana uses to make requests for the data needed to load a Widget, which displays information about a third party resource.
Match URL patternA regex which allows Asana to compute whether a URL attachment is supported by an activated app on the project in order to render a widget.

Widget documentation

View schemas related towidgetshere in the API reference.

Endpoints

Updated about 1 month ago



[8]ページ先頭

©2009-2025 Movatter.jp