Skip to main content

Hello Lucid Developers,

I am extending my custom CardIntegration with the ability for users to select assignees.

What I've Achieved So Far:

I can successfully display the current assignee's full name in a User Badge on the card.

My Challenge:

I need to make this User Badge interactive so that a user can click on it and select a different assignee from the available Lucid users. Currently, the field is read-only.

My Research and Proposed Solution:

From my search in the documentation, it seems I need to define the userSearchCallback property for the User Badge. I encountered a roadblock where this property expects a string identifier, not a direct function reference.

My current working hypothesis is to:

  1. Implement a callback function that handles the user search logic.

  2. Register this function using LucidCardIntegrationRegistry.registerUserSearchCallback(mySearchFunction).

  3. Use the string identifier returned by the registration function as the value for the userSearchCallback property.

My Questions:

  1. Is this the correct and intended approach for implementing the assignee selection feature?

  2. Could you please point me to the specific documentation that details how to integrate an interactive assignee/user search?

  3. Are there any example implementations or code snippets available that demonstrate this functionality?

Thank you for your help!

 

Hey Mmuenker,

For an example of using registerUserSearchCallback, see our public asana card example here.

You then use the callback value in the field configuration of the card like here.


Reply