Hi,
This should do it:
displayname=Risk Type & Desc
listdelimiter=<div>
listmethod=nested(risks).lists
textmode=true
type=iterate
valueexpression=CONCAT("* ",{riskTypeID},", ",{description})
valueformat=HTML
However, i'm not sure why you would want the riskTypeID as this just returns a 32 character ID that wont mean anything to anyone. Did you mean riskType.name? If so, this would work:
displayname=Risk Type & Desc
listdelimiter=<div>
listmethod=nested(risks).lists
textmode=true
type=iterate
valueexpression=CONCAT("* ",{riskType}.{name},", ",{description})
valueformat=HTML
You were very close. There were a just a couple of issues with your code. in listmethod, you need to use "risks" instead of "risk" because "risks" is the name of the collection in the API explorer. Then for description and riskTypeID in your value expression, there was no need to have {risk} appear before {riskTypeID} and {description}. Workfront already knows you are referencing the risk dataset because we've specified that as the collection in listmethod. . . . If that makes sense.
Hope that helps!
Best Regards,
Rich.