YouTrackSharp - return issueID of newly created issue

Hi there,

 

I'm able to successfully create an issue in the a project (via YouTrackSharp) however I'm wondering how I can get the issueID of the newly created issue? This is needed to "Apply Commands" and in context, I may be creating many issue's in a short interval so returning the all issues in a project wont help me. Ideally, I need a "Create Issue" function that returns the issueID of the newly created issue?

Any ideas are greatly appreciated.

Thanks,

Dylan

3 comments
Comment actions Permalink
Official comment

Dylan,

Thank you for the update, glad to see you've found a solution!

Comment actions Permalink

I'm thinking a work around of this could be to retrieve all the issues in the projects, ordered by creation date and retrieve the most recently created. However this could become complicated if someone is creating issues on the UI at the same time the API is creating an issue.

0
Comment actions Permalink

I'm sorry. This was a poor question. The async result returns the newly created issue ID. I don't know if it's worth keeping this ticket here for future reference to others. I'll let the mod's decide if they want to keep or delete this question.

0

Please sign in to leave a comment.