Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Add method in the API client to create USs in bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
bameda committed Feb 17, 2014
1 parent a9a7987 commit e1b1da7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions taiga_ncurses/api/client.py
Expand Up @@ -118,6 +118,7 @@ class TaigaClient(BaseClient):
"milestone": "/api/v1/milestones/{}",
"milestone-stats": "/api/v1/milestones/{}/stats",
"user_stories": "/api/v1/userstories",
"user_stories_bulk_create": "/api/v1/userstories/bulk_create",
"user_stories_bulk_update_order": "/api/v1/userstories/bulk_update_order",
"user_story": "/api/v1/userstories/{}",
"tasks": "/api/v1/tasks",
Expand Down Expand Up @@ -233,6 +234,10 @@ def update_user_stories_order(self, data_dict={}, params={}):
url = urljoin(self._host, self.URLS.get("user_stories_bulk_update_order"))
return self._post(url, data_dict, params)

def create_user_stories_in_bulk(self, data_dict={}, params={}):
url = urljoin(self._host, self.URLS.get("user_stories_bulk_create"))
return self._post(url, data_dict, params)

def create_user_story(self, data_dict={}, params={}):
url = urljoin(self._host, self.URLS.get("user_stories"))
return self._post(url, data_dict, params)
Expand Down

0 comments on commit e1b1da7

Please sign in to comment.