Sha256: d8db27a7f76571fe7b180771ec910feb2c204a0c8f5a86bb0de9f3aee68e0be8
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
class YouTrack::Client::Project < YouTrack::Client::Model identity :id, aliases: ["shortName"] attribute :versions, type: :array attribute :name attribute :description attribute :is_importing, type: :boolean, aliases: ["isImporting"] attribute :assignees def issues service.issues.all(self.id) end def custom_fields service.get_project_custom_fields(self.id).body end def add_version(version) raise YouTrack::NotAnAdminError unless service.current_user.admin? unless versions.include?(version) service.add_project_fix_version('project' => self.id, 'version' => version) end end def remove_version(version) raise YouTrack::NotAnAdminError unless service.current_user.admin? if versions.include?(version) service.remove_project_fix_version('project' => self.id, 'version' => version) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
you_track-0.3.0 | lib/you_track/client/models/project.rb |