Show ID and Title in one column for Downstream items

Modified on Thu, 24 Jul at 4:24 PM

By default, Risksheet displays the Title and ID of downstream work items in separate columns, which aligns with Risksheet's standard behavior. However, in certain cases—such as when screen space is limited or for improved readability—it may be more convenient to combine both fields into a single column. 




TABLE OF CONTENTS


Configuration


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. 


You can find more information on that topic in the article here.


For any assistance, please don’t hesitate to reach out by submitting a ticket here.

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