create issue api method