Fix advisory creation

* Fix ID generation for unpublished advisories
* Update issue after creating advisory