Class: Teamlab::Project
- Inherits:
-
Object
- Object
- Teamlab::Project
- Defined in:
- lib/teamlab/modules/project.rb
Instance Method Summary collapse
- #add_importing_url_to_queue(company_url, username, password, import_closed, disable_notifications, import_users_as_collaborators, projects = []) ⇒ Object
- #add_link(parent_task_id, dependence_task_id, link_type) ⇒ Object
- #add_message(project_id, title, content, participants, options = {}) ⇒ Object
- #add_message_comment(message_id, content, options = {}) ⇒ Object
- #add_milestone(project_id, title, deadline, responsible_id, options = {}) ⇒ Object
- #add_project_contact(project_id, contact_id) ⇒ Object
- #add_task(project_id, title, options = {}) ⇒ Object
- #add_task_comment(task_id, content, options = {}) ⇒ Object
- #add_task_from_discussion(project_id, message_id) ⇒ Object
- #add_task_time(task_id, date, person_id, project_id, options = {}) ⇒ Object
- #add_to_team(project_id, user_id) ⇒ Object
- #check_subscription_to_discussion(message_id) ⇒ Object
- #check_subscription_to_task_action(task_id) ⇒ Object
- #create_project(title, description, responsible_id, tags, private, options = {}) ⇒ Object
-
#create_report_template(name, options = {}) ⇒ Object
region Report Template.
- #create_subtask(task_id, responsible_id, title) ⇒ Object
- #create_template(title, options = {}) ⇒ Object
- #delete_comment(comment_id) ⇒ Object
- #delete_message(message_id) ⇒ Object
- #delete_milestone(id) ⇒ Object
- #delete_project(id) ⇒ Object
- #delete_project_contact(project_id, contact_id) ⇒ Object
- #delete_report_template(report_id) ⇒ Object
- #delete_subtask(task_id, subtask_id) ⇒ Object
- #delete_task(id) ⇒ Object
- #delete_template(id) ⇒ Object
- #delete_time_spents(*time_ids) ⇒ Object
- #detach_file_from_message(message_id, file_id) ⇒ Object
- #detach_file_from_task(task_id, file_id) ⇒ Object
- #filter_projects(options = {}) ⇒ Object
- #follow_unfollow_project(project_id) ⇒ Object
- #get_all_tasks(project_id) ⇒ Object
-
#get_comment(comment_id) ⇒ Object
region Comment.
- #get_entity_files(entity_id, entity_type) ⇒ Object
- #get_followed_projects ⇒ Object
-
#get_import_status ⇒ Object
region Import.
-
#get_latest_discussion_messages ⇒ Object
region Discussions.
- #get_message_by_filter(options = {}) ⇒ Object
- #get_message_comments(message_id) ⇒ Object
- #get_message_files(message_id) ⇒ Object
- #get_messages(project_id) ⇒ Object
- #get_milestone(id) ⇒ Object
- #get_milestone_tasks(id) ⇒ Object
- #get_milestones(project_id) ⇒ Object
- #get_milestones_by_filter(options = {}) ⇒ Object
- #get_milestones_by_full_date(year, month, day) ⇒ Object
- #get_milestones_by_month(year, month) ⇒ Object
- #get_milestones_with_status(project_id, status) ⇒ Object
-
#get_my_tasks ⇒ Object
region Tasks.
- #get_my_tasks_by_status(status) ⇒ Object
- #get_my_tasks_with_status(project_id, status) ⇒ Object
- #get_overdue_milestones ⇒ Object
- #get_participated_projects ⇒ Object
- #get_project(id) ⇒ Object
- #get_project_by_status(status) ⇒ Object
- #get_project_by_tag(tag) ⇒ Object
- #get_project_files(project_id) ⇒ Object
- #get_project_message(message_id) ⇒ Object
-
#get_project_tags ⇒ Object
region Tags.
-
#get_project_team(project_id) ⇒ Object
region Team.
-
#get_projects ⇒ Object
region Projects.
-
#get_projects_for_contact(contact_id) ⇒ Object
region Contacts.
- #get_projects_for_import(url, username, password) ⇒ Object
- #get_projects_teams(*project_ids) ⇒ Object
- #get_simple_task_by_filter(project_id, options = {}) ⇒ Object
- #get_spent_time(project_id) ⇒ Object
- #get_tags_by_name(tag_name) ⇒ Object
- #get_task(id) ⇒ Object
- #get_task_by_filter(options = {}) ⇒ Object
- #get_task_comments(task_id) ⇒ Object
-
#get_task_files(task_id) ⇒ Object
region Files.
- #get_task_order(project_id) ⇒ Object
- #get_tasks(project_id) ⇒ Object
-
#get_tasks_by_ids(*task_ids) ⇒ Object
endregion.
- #get_tasks_with_status(project_id, status) ⇒ Object
- #get_template(template_id) ⇒ Object
- #get_templates ⇒ Object
- #get_time_spent(task_id) ⇒ Object
- #get_time_spent_by_filter(options = {}) ⇒ Object
- #get_total_time_spent_by_filter(options = {}) ⇒ Object
-
#get_upcoming_milestones ⇒ Object
endregion.
-
#initialize ⇒ Project
constructor
A new instance of Project.
- #notify_task_responsible(task_id) ⇒ Object
- #remove_from_team(project_id, user_id) ⇒ Object
- #search_all_projects(query) ⇒ Object
- #search_project(project_id, query) ⇒ Object
- #set_task_order(project_id, order) ⇒ Object
- #set_team_security(project_id, user_id, security, options = {}) ⇒ Object
- #subscribe_to_message_action(message_id) ⇒ Object
- #subscribe_to_task_action(task_id) ⇒ Object
- #update_comment(comment_id, content) ⇒ Object
- #update_message(message_id, project_id, title, content, options = {}) ⇒ Object
- #update_message_status(message_id, status) ⇒ Object
- #update_milestone(id, title, deadline, options = {}) ⇒ Object
- #update_milestone_status(id, status) ⇒ Object
- #update_project(id, title, responsible_id, options = {}) ⇒ Object
- #update_project_status(id, status) ⇒ Object
- #update_project_tags(id, tags) ⇒ Object
- #update_project_task(task_id, title, options = {}) ⇒ Object
- #update_project_team(project_id, participants_ids, options = {}) ⇒ Object
- #update_report_template(report_id, name, options = {}) ⇒ Object
- #update_subtask(task_id, subtask_id, responsible_id, title) ⇒ Object
- #update_subtask_status(task_id, subtask_id, status) ⇒ Object
- #update_task_milestone(task_id, milestone_id) ⇒ Object
- #update_task_status(task_id, status) ⇒ Object
- #update_task_time(time_id, date, person_id, options = {}) ⇒ Object
- #update_template(id, title) ⇒ Object
- #update_time_status_of_payment(time_ids, status) ⇒ Object
- #upload_file_to_message(message_id, *files) ⇒ Object
- #upload_file_to_task(task_id, *files) ⇒ Object
Constructor Details
Instance Method Details
#add_importing_url_to_queue(company_url, username, password, import_closed, disable_notifications, import_users_as_collaborators, projects = []) ⇒ Object
13 14 15 16 |
# File 'lib/teamlab/modules/project.rb', line 13 def add_importing_url_to_queue(company_url, username, password, import_closed, disable_notifications, import_users_as_collaborators, projects = []) @request.post(%w(import), url: company_url, userName: username, password: password, importClosed: import_closed, disableNotifications: disable_notifications, importUsersAsCollaborators: import_users_as_collaborators, projects: projects) end |
#add_link(parent_task_id, dependence_task_id, link_type) ⇒ Object
260 261 262 |
# File 'lib/teamlab/modules/project.rb', line 260 def add_link(parent_task_id, dependence_task_id, link_type) @request.post(['task', parent_task_id.to_s, 'link'], dependenceTaskId: dependence_task_id, linkType: link_type) end |
#add_message(project_id, title, content, participants, options = {}) ⇒ Object
46 47 48 |
# File 'lib/teamlab/modules/project.rb', line 46 def (project_id, title, content, participants, = {}) @request.post([project_id.to_s, 'message'], { title: title, content: content, participants: participants }.merge()) end |
#add_message_comment(message_id, content, options = {}) ⇒ Object
118 119 120 |
# File 'lib/teamlab/modules/project.rb', line 118 def (, content, = {}) @request.post(['message', .to_s, 'comment'], { content: content }.merge()) end |
#add_milestone(project_id, title, deadline, responsible_id, options = {}) ⇒ Object
214 215 216 |
# File 'lib/teamlab/modules/project.rb', line 214 def add_milestone(project_id, title, deadline, responsible_id, = {}) @request.post([project_id.to_s, 'milestone'], { title: title, deadline: deadline, responsible: responsible_id }.merge()) end |
#add_project_contact(project_id, contact_id) ⇒ Object
390 391 392 |
# File 'lib/teamlab/modules/project.rb', line 390 def add_project_contact(project_id, contact_id) @request.post([project_id.to_s, 'contact'], contactId: contact_id) end |
#add_task(project_id, title, options = {}) ⇒ Object
350 351 352 |
# File 'lib/teamlab/modules/project.rb', line 350 def add_task(project_id, title, = {}) @request.post([project_id.to_s, 'task'], { title: title }.merge()) end |
#add_task_comment(task_id, content, options = {}) ⇒ Object
114 115 116 |
# File 'lib/teamlab/modules/project.rb', line 114 def add_task_comment(task_id, content, = {}) @request.post(['task', task_id.to_s, 'comment'], { content: content }.merge()) end |
#add_task_from_discussion(project_id, message_id) ⇒ Object
354 355 356 |
# File 'lib/teamlab/modules/project.rb', line 354 def add_task_from_discussion(project_id, ) @request.post([project_id.to_s, 'task', .to_s]) end |
#add_task_time(task_id, date, person_id, project_id, options = {}) ⇒ Object
468 469 470 |
# File 'lib/teamlab/modules/project.rb', line 468 def add_task_time(task_id, date, person_id, project_id, = {}) @request.post(['task', task_id.to_s, 'time'], { date: date, personId: person_id, projectId: project_id }.merge()) end |
#add_to_team(project_id, user_id) ⇒ Object
286 287 288 |
# File 'lib/teamlab/modules/project.rb', line 286 def add_to_team(project_id, user_id) @request.post([project_id.to_s, 'team'], userid: user_id) end |
#check_subscription_to_discussion(message_id) ⇒ Object
42 43 44 |
# File 'lib/teamlab/modules/project.rb', line 42 def check_subscription_to_discussion() @request.get(['message', .to_s, 'subscribe']) end |
#check_subscription_to_task_action(task_id) ⇒ Object
334 335 336 |
# File 'lib/teamlab/modules/project.rb', line 334 def check_subscription_to_task_action(task_id) @request.get(['task', task_id.to_s, 'subscribe']) end |
#create_project(title, description, responsible_id, tags, private, options = {}) ⇒ Object
206 207 208 |
# File 'lib/teamlab/modules/project.rb', line 206 def create_project(title, description, responsible_id, , private, = {}) @request.post('', { title: title, description: description, responsibleid: responsible_id, tags: , private: private }.merge()) end |
#create_report_template(name, options = {}) ⇒ Object
region Report Template
134 135 136 |
# File 'lib/teamlab/modules/project.rb', line 134 def create_report_template(name, = {}) @request.post(['report'], { name: name }.merge()) end |
#create_subtask(task_id, responsible_id, title) ⇒ Object
346 347 348 |
# File 'lib/teamlab/modules/project.rb', line 346 def create_subtask(task_id, responsible_id, title) @request.post(['task', task_id.to_s], responsible: responsible_id, title: title) end |
#create_template(title, options = {}) ⇒ Object
210 211 212 |
# File 'lib/teamlab/modules/project.rb', line 210 def create_template(title, = {}) @request.post(['template'], { title: title }.merge()) end |
#delete_comment(comment_id) ⇒ Object
126 127 128 |
# File 'lib/teamlab/modules/project.rb', line 126 def delete_comment(comment_id) @request.delete(['comment', comment_id.to_s]) end |
#delete_message(message_id) ⇒ Object
62 63 64 |
# File 'lib/teamlab/modules/project.rb', line 62 def () @request.delete(['message', .to_s]) end |
#delete_milestone(id) ⇒ Object
452 453 454 |
# File 'lib/teamlab/modules/project.rb', line 452 def delete_milestone(id) @request.delete(['milestone', id.to_s]) end |
#delete_project(id) ⇒ Object
234 235 236 |
# File 'lib/teamlab/modules/project.rb', line 234 def delete_project(id) @request.delete([id.to_s]) end |
#delete_project_contact(project_id, contact_id) ⇒ Object
394 395 396 |
# File 'lib/teamlab/modules/project.rb', line 394 def delete_project_contact(project_id, contact_id) @request.delete([project_id.to_s, 'contact'], contactId: contact_id) end |
#delete_report_template(report_id) ⇒ Object
142 143 144 |
# File 'lib/teamlab/modules/project.rb', line 142 def delete_report_template(report_id) @request.delete(['report', report_id.to_s]) end |
#delete_subtask(task_id, subtask_id) ⇒ Object
378 379 380 |
# File 'lib/teamlab/modules/project.rb', line 378 def delete_subtask(task_id, subtask_id) @request.delete(['task', task_id.to_s, subtask_id.to_s]) end |
#delete_task(id) ⇒ Object
242 243 244 |
# File 'lib/teamlab/modules/project.rb', line 242 def delete_task(id) @request.delete(['task', id.to_s]) end |
#delete_template(id) ⇒ Object
238 239 240 |
# File 'lib/teamlab/modules/project.rb', line 238 def delete_template(id) @request.delete(['template', id.to_s]) end |
#delete_time_spents(*time_ids) ⇒ Object
480 481 482 |
# File 'lib/teamlab/modules/project.rb', line 480 def delete_time_spents(*time_ids) @request.delete(%w(time times remove), timeIds: time_ids.flatten) end |
#detach_file_from_message(message_id, file_id) ⇒ Object
94 95 96 |
# File 'lib/teamlab/modules/project.rb', line 94 def (, file_id) @request.delete(['message', .to_s, 'files'], fileid: file_id) end |
#detach_file_from_task(task_id, file_id) ⇒ Object
90 91 92 |
# File 'lib/teamlab/modules/project.rb', line 90 def detach_file_from_task(task_id, file_id) @request.delete(['task', task_id.to_s, 'files'], fileid: file_id) end |
#filter_projects(options = {}) ⇒ Object
162 163 164 |
# File 'lib/teamlab/modules/project.rb', line 162 def filter_projects( = {}) @request.get(['filter'], ) end |
#follow_unfollow_project(project_id) ⇒ Object
230 231 232 |
# File 'lib/teamlab/modules/project.rb', line 230 def follow_unfollow_project(project_id) @request.put([project_id.to_s, 'follow']) end |
#get_all_tasks(project_id) ⇒ Object
330 331 332 |
# File 'lib/teamlab/modules/project.rb', line 330 def get_all_tasks(project_id) @request.get([project_id.to_s, 'task']) end |
#get_comment(comment_id) ⇒ Object
region Comment
102 103 104 |
# File 'lib/teamlab/modules/project.rb', line 102 def get_comment(comment_id) @request.get(['comment', comment_id.to_s]) end |
#get_entity_files(entity_id, entity_type) ⇒ Object
74 75 76 |
# File 'lib/teamlab/modules/project.rb', line 74 def get_entity_files(entity_id, entity_type) @request.get([entity_id.to_s, 'entityfiles'], entityType: entity_type) end |
#get_followed_projects ⇒ Object
166 167 168 |
# File 'lib/teamlab/modules/project.rb', line 166 def get_followed_projects @request.get(['@follow']) end |
#get_import_status ⇒ Object
region Import
9 10 11 |
# File 'lib/teamlab/modules/project.rb', line 9 def get_import_status @request.get(['import']) end |
#get_latest_discussion_messages ⇒ Object
region Discussions
26 27 28 |
# File 'lib/teamlab/modules/project.rb', line 26 def @request.get(['message']) end |
#get_message_by_filter(options = {}) ⇒ Object
30 31 32 |
# File 'lib/teamlab/modules/project.rb', line 30 def ( = {}) @request.get(%w(message filter), ) end |
#get_message_comments(message_id) ⇒ Object
110 111 112 |
# File 'lib/teamlab/modules/project.rb', line 110 def () @request.get(['message', .to_s, 'comment']) end |
#get_message_files(message_id) ⇒ Object
78 79 80 |
# File 'lib/teamlab/modules/project.rb', line 78 def () @request.get(['message', .to_s, 'files']) end |
#get_messages(project_id) ⇒ Object
34 35 36 |
# File 'lib/teamlab/modules/project.rb', line 34 def (project_id) @request.get([project_id.to_s, 'message']) end |
#get_milestone(id) ⇒ Object
424 425 426 |
# File 'lib/teamlab/modules/project.rb', line 424 def get_milestone(id) @request.get(['milestone', id.to_s]) end |
#get_milestone_tasks(id) ⇒ Object
432 433 434 |
# File 'lib/teamlab/modules/project.rb', line 432 def get_milestone_tasks(id) @request.get(['milestone', id.to_s, 'task']) end |
#get_milestones(project_id) ⇒ Object
190 191 192 |
# File 'lib/teamlab/modules/project.rb', line 190 def get_milestones(project_id) @request.get([project_id.to_s, 'milestone']) end |
#get_milestones_by_filter(options = {}) ⇒ Object
428 429 430 |
# File 'lib/teamlab/modules/project.rb', line 428 def get_milestones_by_filter( = {}) @request.get(%w(milestone filter), ) end |
#get_milestones_by_full_date(year, month, day) ⇒ Object
440 441 442 |
# File 'lib/teamlab/modules/project.rb', line 440 def get_milestones_by_full_date(year, month, day) @request.get(['milestone', year.to_s, month.to_s, day.to_s]) end |
#get_milestones_by_month(year, month) ⇒ Object
436 437 438 |
# File 'lib/teamlab/modules/project.rb', line 436 def get_milestones_by_month(year, month) @request.get(['milestone', year.to_s, month.to_s]) end |
#get_milestones_with_status(project_id, status) ⇒ Object
202 203 204 |
# File 'lib/teamlab/modules/project.rb', line 202 def get_milestones_with_status(project_id, status) @request.get([project_id.to_s, 'milestone', status.to_s]) end |
#get_my_tasks ⇒ Object
region Tasks
306 307 308 |
# File 'lib/teamlab/modules/project.rb', line 306 def get_my_tasks @request.get(%w(task @self)) end |
#get_my_tasks_by_status(status) ⇒ Object
322 323 324 |
# File 'lib/teamlab/modules/project.rb', line 322 def get_my_tasks_by_status(status) @request.get(['task', '@self', status.to_s]) end |
#get_my_tasks_with_status(project_id, status) ⇒ Object
342 343 344 |
# File 'lib/teamlab/modules/project.rb', line 342 def get_my_tasks_with_status(project_id, status) @request.get([project_id.to_s, 'task', '@self', status.to_s]) end |
#get_overdue_milestones ⇒ Object
420 421 422 |
# File 'lib/teamlab/modules/project.rb', line 420 def get_overdue_milestones @request.get(%w(milestone late)) end |
#get_participated_projects ⇒ Object
158 159 160 |
# File 'lib/teamlab/modules/project.rb', line 158 def get_participated_projects @request.get(['@self']) end |
#get_project(id) ⇒ Object
154 155 156 |
# File 'lib/teamlab/modules/project.rb', line 154 def get_project(id) @request.get([id.to_s]) end |
#get_project_by_status(status) ⇒ Object
170 171 172 |
# File 'lib/teamlab/modules/project.rb', line 170 def get_project_by_status(status) @request.get([status.to_s]) end |
#get_project_by_tag(tag) ⇒ Object
406 407 408 |
# File 'lib/teamlab/modules/project.rb', line 406 def get_project_by_tag(tag) @request.get(['tag', tag.to_s]) end |
#get_project_files(project_id) ⇒ Object
182 183 184 |
# File 'lib/teamlab/modules/project.rb', line 182 def get_project_files(project_id) @request.get([project_id.to_s, 'files']) end |
#get_project_message(message_id) ⇒ Object
38 39 40 |
# File 'lib/teamlab/modules/project.rb', line 38 def () @request.get(['message', .to_s]) end |
#get_project_tags ⇒ Object
region Tags
402 403 404 |
# File 'lib/teamlab/modules/project.rb', line 402 def @request.get(%w(tag)) end |
#get_project_team(project_id) ⇒ Object
region Team
278 279 280 |
# File 'lib/teamlab/modules/project.rb', line 278 def get_project_team(project_id) @request.get([project_id.to_s, 'team']) end |
#get_projects ⇒ Object
region Projects
150 151 152 |
# File 'lib/teamlab/modules/project.rb', line 150 def get_projects @request.get end |
#get_projects_for_contact(contact_id) ⇒ Object
region Contacts
386 387 388 |
# File 'lib/teamlab/modules/project.rb', line 386 def get_projects_for_contact(contact_id) @request.get(['contact', contact_id.to_s]) end |
#get_projects_for_import(url, username, password) ⇒ Object
18 19 20 |
# File 'lib/teamlab/modules/project.rb', line 18 def get_projects_for_import(url, username, password) @request.post(%w(import projects), url: url, userName: username, password: password) end |
#get_projects_teams(*project_ids) ⇒ Object
282 283 284 |
# File 'lib/teamlab/modules/project.rb', line 282 def get_projects_teams(*project_ids) @request.post(%w(team), ids: project_ids.flatten) end |
#get_simple_task_by_filter(project_id, options = {}) ⇒ Object
256 257 258 |
# File 'lib/teamlab/modules/project.rb', line 256 def get_simple_task_by_filter(project_id, = {}) @request.get(%w(task filter simple), { projectid: project_id }.merge()) end |
#get_spent_time(project_id) ⇒ Object
178 179 180 |
# File 'lib/teamlab/modules/project.rb', line 178 def get_spent_time(project_id) @request.get([project_id.to_s, 'time']) end |
#get_tags_by_name(tag_name) ⇒ Object
410 411 412 |
# File 'lib/teamlab/modules/project.rb', line 410 def (tag_name) @request.get(%w(tag search), tagName: tag_name) end |
#get_task(id) ⇒ Object
314 315 316 |
# File 'lib/teamlab/modules/project.rb', line 314 def get_task(id) @request.get(['task', id.to_s]) end |
#get_task_by_filter(options = {}) ⇒ Object
310 311 312 |
# File 'lib/teamlab/modules/project.rb', line 310 def get_task_by_filter( = {}) @request.get(%w(task filter), ) end |
#get_task_comments(task_id) ⇒ Object
106 107 108 |
# File 'lib/teamlab/modules/project.rb', line 106 def get_task_comments(task_id) @request.get(['task', task_id.to_s, 'comment']) end |
#get_task_files(task_id) ⇒ Object
region Files
70 71 72 |
# File 'lib/teamlab/modules/project.rb', line 70 def get_task_files(task_id) @request.get(['task', task_id.to_s, 'files']) end |
#get_task_order(project_id) ⇒ Object
252 253 254 |
# File 'lib/teamlab/modules/project.rb', line 252 def get_task_order(project_id) @request.get([project_id.to_s, 'order']) end |
#get_tasks(project_id) ⇒ Object
318 319 320 |
# File 'lib/teamlab/modules/project.rb', line 318 def get_tasks(project_id) @request.get([project_id.to_s, 'task']) end |
#get_tasks_by_ids(*task_ids) ⇒ Object
endregion
248 249 250 |
# File 'lib/teamlab/modules/project.rb', line 248 def get_tasks_by_ids(*task_ids) @request.get(['task'], taskid: task_ids.flatten) end |
#get_tasks_with_status(project_id, status) ⇒ Object
338 339 340 |
# File 'lib/teamlab/modules/project.rb', line 338 def get_tasks_with_status(project_id, status) @request.get([project_id.to_s, 'task', status.to_s]) end |
#get_template(template_id) ⇒ Object
186 187 188 |
# File 'lib/teamlab/modules/project.rb', line 186 def get_template(template_id) @request.get([template_id.to_s]) end |
#get_templates ⇒ Object
174 175 176 |
# File 'lib/teamlab/modules/project.rb', line 174 def get_templates @request.get(['template']) end |
#get_time_spent(task_id) ⇒ Object
464 465 466 |
# File 'lib/teamlab/modules/project.rb', line 464 def get_time_spent(task_id) @request.get(['task', task_id.to_s, 'time']) end |
#get_time_spent_by_filter(options = {}) ⇒ Object
456 457 458 |
# File 'lib/teamlab/modules/project.rb', line 456 def get_time_spent_by_filter( = {}) @request.get(%w(time filter), ) end |
#get_total_time_spent_by_filter(options = {}) ⇒ Object
460 461 462 |
# File 'lib/teamlab/modules/project.rb', line 460 def get_total_time_spent_by_filter( = {}) @request.get(%w(time filter total), ) end |
#get_upcoming_milestones ⇒ Object
endregion
416 417 418 |
# File 'lib/teamlab/modules/project.rb', line 416 def get_upcoming_milestones @request.get(%w(milestone)) end |
#notify_task_responsible(task_id) ⇒ Object
326 327 328 |
# File 'lib/teamlab/modules/project.rb', line 326 def notify_task_responsible(task_id) @request.get(['task', task_id.to_s, 'notify']) end |
#remove_from_team(project_id, user_id) ⇒ Object
298 299 300 |
# File 'lib/teamlab/modules/project.rb', line 298 def remove_from_team(project_id, user_id) @request.delete([project_id.to_s, 'team'], userId: user_id) end |
#search_all_projects(query) ⇒ Object
194 195 196 |
# File 'lib/teamlab/modules/project.rb', line 194 def search_all_projects(query) @request.get(['@search', query.to_s]) end |
#search_project(project_id, query) ⇒ Object
198 199 200 |
# File 'lib/teamlab/modules/project.rb', line 198 def search_project(project_id, query) @request.get([project_id.to_s, '@search', query.to_s]) end |
#set_task_order(project_id, order) ⇒ Object
268 269 270 |
# File 'lib/teamlab/modules/project.rb', line 268 def set_task_order(project_id, order) @request.put([project_id.to_s, 'order'], order: order) end |
#set_team_security(project_id, user_id, security, options = {}) ⇒ Object
294 295 296 |
# File 'lib/teamlab/modules/project.rb', line 294 def set_team_security(project_id, user_id, security, = {}) @request.put([project_id.to_s, 'team', 'security'], { userId: user_id, security: security }.merge()) end |
#subscribe_to_message_action(message_id) ⇒ Object
58 59 60 |
# File 'lib/teamlab/modules/project.rb', line 58 def () @request.put(['message', .to_s, 'subscribe']) end |
#subscribe_to_task_action(task_id) ⇒ Object
366 367 368 |
# File 'lib/teamlab/modules/project.rb', line 366 def subscribe_to_task_action(task_id) @request.put(['task', task_id.to_s, 'subscribe']) end |
#update_comment(comment_id, content) ⇒ Object
122 123 124 |
# File 'lib/teamlab/modules/project.rb', line 122 def update_comment(comment_id, content) @request.put(['comment', comment_id.to_s], content: content) end |
#update_message(message_id, project_id, title, content, options = {}) ⇒ Object
50 51 52 |
# File 'lib/teamlab/modules/project.rb', line 50 def (, project_id, title, content, = {}) @request.put(['message', .to_s], { projectid: project_id, title: title, content: content }.merge()) end |
#update_message_status(message_id, status) ⇒ Object
54 55 56 |
# File 'lib/teamlab/modules/project.rb', line 54 def (, status) @request.put(['message', .to_s, 'status'], status: status) end |
#update_milestone(id, title, deadline, options = {}) ⇒ Object
444 445 446 |
# File 'lib/teamlab/modules/project.rb', line 444 def update_milestone(id, title, deadline, = {}) @request.put(['milestone', id.to_s], { title: title, deadline: deadline }.merge()) end |
#update_milestone_status(id, status) ⇒ Object
448 449 450 |
# File 'lib/teamlab/modules/project.rb', line 448 def update_milestone_status(id, status) @request.put(['milestone', id.to_s, 'status'], status: status) end |
#update_project(id, title, responsible_id, options = {}) ⇒ Object
264 265 266 |
# File 'lib/teamlab/modules/project.rb', line 264 def update_project(id, title, responsible_id, = {}) @request.put([id.to_s], { title: title, responsibleId: responsible_id }.merge()) end |
#update_project_status(id, status) ⇒ Object
222 223 224 |
# File 'lib/teamlab/modules/project.rb', line 222 def update_project_status(id, status) @request.put([id.to_s, 'status'], status: status) end |
#update_project_tags(id, tags) ⇒ Object
218 219 220 |
# File 'lib/teamlab/modules/project.rb', line 218 def (id, ) @request.put([id.to_s, 'tag'], tags: ) end |
#update_project_task(task_id, title, options = {}) ⇒ Object
272 273 274 |
# File 'lib/teamlab/modules/project.rb', line 272 def update_project_task(task_id, title, = {}) @request.put(['task', task_id.to_s], { title: title.to_s }.merge()) end |
#update_project_team(project_id, participants_ids, options = {}) ⇒ Object
290 291 292 |
# File 'lib/teamlab/modules/project.rb', line 290 def update_project_team(project_id, participants_ids, = {}) @request.put([project_id.to_s, 'team'], { participants: participants_ids }.merge()) end |
#update_report_template(report_id, name, options = {}) ⇒ Object
138 139 140 |
# File 'lib/teamlab/modules/project.rb', line 138 def update_report_template(report_id, name, = {}) @request.put(['report', report_id.to_s], { name: name }.merge()) end |
#update_subtask(task_id, subtask_id, responsible_id, title) ⇒ Object
370 371 372 |
# File 'lib/teamlab/modules/project.rb', line 370 def update_subtask(task_id, subtask_id, responsible_id, title) @request.post(['task', task_id.to_s, subtask_id.to_s], responsibleId: responsible_id, title: title) end |
#update_subtask_status(task_id, subtask_id, status) ⇒ Object
374 375 376 |
# File 'lib/teamlab/modules/project.rb', line 374 def update_subtask_status(task_id, subtask_id, status) @request.put(['task', task_id.to_s, subtask_id.to_s, 'status'], status: status) end |
#update_task_milestone(task_id, milestone_id) ⇒ Object
362 363 364 |
# File 'lib/teamlab/modules/project.rb', line 362 def update_task_milestone(task_id, milestone_id) @request.put(['task', task_id.to_s, 'milestone'], milestoneId: milestone_id) end |
#update_task_status(task_id, status) ⇒ Object
358 359 360 |
# File 'lib/teamlab/modules/project.rb', line 358 def update_task_status(task_id, status) @request.put(['task', task_id.to_s, 'status'], status: status) end |
#update_task_time(time_id, date, person_id, options = {}) ⇒ Object
472 473 474 |
# File 'lib/teamlab/modules/project.rb', line 472 def update_task_time(time_id, date, person_id, = {}) @request.put(['time', time_id.to_s], { date: date, personId: person_id }.merge()) end |
#update_template(id, title) ⇒ Object
226 227 228 |
# File 'lib/teamlab/modules/project.rb', line 226 def update_template(id, title) @request.put(['template', id.to_s], title: title) end |
#update_time_status_of_payment(time_ids, status) ⇒ Object
476 477 478 |
# File 'lib/teamlab/modules/project.rb', line 476 def update_time_status_of_payment(time_ids, status) @request.put(%w(time times status), timeids: time_ids, status: status) end |
#upload_file_to_message(message_id, *files) ⇒ Object
86 87 88 |
# File 'lib/teamlab/modules/project.rb', line 86 def (, *files) @request.post(['message', .to_s, 'files'], files: files.flatten) end |
#upload_file_to_task(task_id, *files) ⇒ Object
82 83 84 |
# File 'lib/teamlab/modules/project.rb', line 82 def upload_file_to_task(task_id, *files) @request.post(['task', task_id.to_s, 'files'], files: files.flatten) end |