Rest API check Youtrack Version

Hello,

I would like to know if it's possible to check which youtrack version is running using the rest API.

The API gets better and supports more every version of youtrack so it would be handy to dynamically enable features (or handle values more accurately) of a third party system based on the version that it's connecting to.

Thanks for reading
4 comments
Comment actions Permalink
Since YouTrack Fascination version there is rest method, that does what you need. It's
GET <youtrack_url>/rest/workflow/version
0
Comment actions Permalink
Thanks alot for the quick reply. I tested it and it works great.
With YouTrack Fascination do you mean YouTrack 4.x or higher? (i noticed it wasn't working on 3.0).

I also noticed that the "workflow" element is one I haven't seen before, it doesn't seem to be in the  REST API documentation? Are there more calls or documentation regarding this?

Thanks for reading
0
Comment actions Permalink
Hello,

Yes, YouTrack Fascination is YouTrack 4.x.
Path /rest/workflow/ contains methods are for internal communications between WorkFlow Editor and YouTrack. We are not planning to describe them, since they are useless for users.
0
Comment actions Permalink

A quote from YouTrack support:

Since all /rest/* endpoints are scheduled for deprecation in favor of /api/* ones, I'd recommend using /api/config?fields=version,build for the version check. It should be available starting from 2018.1 at the very least.

0

Please sign in to leave a comment.