Hi @Aswi,
Since the native Risk object does not (yet) support custom data and is only available at the Project level (where you're interested in Task level), one common approach is to instead use the native Issue object instead (and as there are four built in, you could rename one to "Risk", if you wish).
Regards,
Doug