Skip to content

Commit 9727e2a

Browse files
committed
Add docs in README for slug/ref get
1 parent 6cc8f87 commit 9727e2a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ api = TaigaAPI(
5151
)
5252
```
5353

54+
### Get projects, user stories, task and issues
55+
56+
You can get projects, user stories, tasks and issues using the primary key or using slug/ref
57+
58+
```python
59+
new_project = api.projects.get_by_slug('nephila')
60+
print (new_project.get_issue_by_ref(1036))
61+
print (new_project.get_userstory_by_ref(1111))
62+
print (new_project.get_task_by_ref(1112))
63+
```
64+
5465
### Create a project
5566

5667
```python

0 commit comments

Comments
 (0)