Changed the way I find the task number. It was Redmine specific.
It's now more error prone but also more accurate.
Started work on RtRessource.