class Youtrack::Project
Public Instance Methods
all()
click to toggle source
create(attributes={})
click to toggle source
required attributes
projectId string required Unique identifier of a project to be created. This short name will be used as prefix in issue IDs for this project. projectName string required Full name of a new project. Must be unique. startingNumber integer required Number to assign to the next manually created issue. projectLeadLogin string required Login name of a user to be assigned as a project leader. description string Optional description of the new project
# File lib/youtrack/resources/project.rb, line 46 def create(attributes={}) put("admin/project/#{attributes[:projectId]}", query: attributes) response end
destroy(project_id)
click to toggle source
# File lib/youtrack/resources/project.rb, line 51 def destroy(project_id) delete("admin/project/#{project_id}") response end
find(project_id)
click to toggle source
# File lib/youtrack/resources/project.rb, line 34 def find(project_id) get("admin/project/#{project_id}") response.parsed_response end
get_accessible_projects()
click to toggle source
get_issues_for(project_id, max,filter,options={})
click to toggle source
Default value for issues to load via API - 500. Check your Settings page in Admin menu - “Max Issues to Export” parameter should be set to issues count that you actually need.
# File lib/youtrack/resources/project.rb, line 20 def get_issues_for(project_id, max,filter,options={}) max = 10 unless max get("issue/byproject/#{project_id}?max=#{max}&filter=#{filter}") response.parsed_response end