My Assignments Extended View - additional columns

Can we extend the columns in My Assignments Widget Expanded view ( Myassignmentstable) to display the date the task was assigned to the user.

Note: I have registered the extension under "csui/controls/table/cells/cell.factory"

Comments

  • JaKar
    edited June 2, 2023 #2

    Hello @MarimuthuDurai did you succed with extending the widget? I am trying to find a similar thing. A customer wants to order the items according to the order of creation. Unfortunatelly there is no info about it in API response.

    We are looking at CS 20.4

    I tried to add fields query parameter but with no luck.

    See the API documentation

    https://developer.opentext.com/ce/products/extendedecm/apis/contentserver204restapi

    {{url}}/v2/members/assignments?metadata=&fields=assignments&expand=assignments%7Bfrom_user_id%2Clocation_id%2Cworkflow_subworkflow_id%2Cworkflow_subworkflow_task_id%2Cworkflow_subworkflow_task_id%7D&expand=properties
    

  • you will most likely need to check the code of the Widget to see if it can be extended via configuration or via code changes, most likely the latter.

  • fprantl@opentext.com
    edited December 19, 2023 #4

    I'm afraid that the columns in the built-in My Assignments widget are fixed - hardcoded in JavaScript. You could file a FR about the column customisation. Or write you own widget w/o REST API, or a WR.

  • lauryfriese932
    edited May 17 #5

    @Yes it is possible to extend the columns in the My Assignments Widget Expanded view to display the date the task was assigned to the user.

    To achieve this, you can register an extension under the "csui/controls/table/cells/cell.factory" path. This will allow you to customize the columns in the My Assignments Widget Expanded view and add a column to display the date the task was assigned.

  • Lealia
    edited May 17 #6

    Defining a new cell for the "assigned_date" column. We're using the built-in text.cell renderer, but you can also define a custom renderer if needed.

    The getValue function is responsible for retrieving the assigned date value from the node data. Ensure that your node data contains the "assigned_date" property and that it's in a format that can be displayed correctly.

  • I want to propose an alternative solution that avoids the need to implement a custom OScript module, which you then have to deploy and maintain on all servers.

    If you have the Module Suite, creating workflow dashboards is quite simple. You can have your "My Assignments" section (or "My Workflows," if you prefer) divided by type of flow, or even a generic dashboard if you want.

    Additionally, you can add analytics and charts that help with monitoring.

    You have building blocks that support the creation of these dashboards in WYSIWYG mode, allowing you to customize them as you prefer with the information you need.

    In your specific case, you can customize the "My Assignments" grid with the information/columns you require using the GRID widget (which is part of the Module Suite), adding actions you find useful for individual or bulk assignments.

    Moreover, the component already offers out-of-the-box features such as filtering results, grouping them, sorting columns, and exporting to Excel or PDF.

    As I mentioned, you do this once on one server, and that's it—you don't have to deploy it on all other servers.

    I will show you other examples just to help you understand the kind of results you can achieve: