
youtrack-rest-client
Ruby client for the Youtrack REST API

Usage
Installation
Using bundler:
bundle add youtrack_client
Authentication
With your permanent token (
see Manage-Permanent-Token):
require 'youtrack'
youtrack = Youtrack::Client.new(base_url: "https://example.myjetbrains.com", token: "perm:your-token")
youtrack.users.current.email
youtrack.users.current
youtrack.users.all
youtrack.users.all("query" => "admin")
youtrack.users.by_id('1-1')
youtrack.projects.all
youtrack.projects.all(query: "DEMO")
youtrack.projects.by_id('0-0')
youtrack.issues.search('project: T1')
youtrack.issues.by_id('T1-2')
youtrack.issues.delete('2-2')
youtrack.issues.create({
summary: 'lorem ipsum',
description: 'created using rest api',
project: {
id: '0-0'
}
})
youtrack.issues.create(Youtrack::Models::Issue.new(summary: "demo issue",
description: "demo issue description",
project: youtrack.projects.by_id("0-0")))
youtrack.issues.command("State Open", youtrack.issues.search("DEMO-12"))
youtrack.issues.command("State Open", %w[T1-1 T1-2 T1-3])
Contributing
If you encounter any missing features or bugs, you're welcome to open an Issue! PRs are welcome too ;-)
- Fork it ( https://github.com/shanehofstetter/youtrack-rest-client-ruby/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request