Fix setState call

* A function was passed instead of an object
Use Issue#rdb_id for issue ID

* Port ISSUE-ID plugin patch from v2