Show ID and Title in one column for Downstream items

Modified on Fri, 15 Mar at 2:49 PM

By default, the Title and ID are shown in separate columns for the downstream items. This is designed to work this way by the system.

However, we understand that you may wish to show them in one column for some purposes.


There is a way on how to achieve it:

Next to the columns that show the Id and title for your items add one more column, that will render an Id and title in one column using a "serverRender" functionality.


..
 {
      "headerGroup": "Risk Control",
            "headerGroupCss":"headMitigations",
            "headerCss":"headMitigations",
            "header": "Requirements",
            "bindings": "task.$item",
            "width": 170      ,
            "serverRender": "<ul style='margin-block-start: -16px;margin-block-end: -16px;padding-inline-start: 16px;'>#foreach($l in $item.fields().linkedWorkItems().back()) #set($r = $l.fields().workItem().get()) #set($t = $r.fields().type().get().id()) #if($t.equals(\"requirement\")) <li> $r.render().withTitle().withIcon(false).withLinks().htmlFor().forFrame() ($r.fields().description().render().htmlFor().forFrame()) </li>  #end #end</ul>"
                      
        },
...


As a result, you'll have 3 columns, and depending on your purposes for each specific use case you may decide what column to show and what to hide using the 'saved views' functionality.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article