Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.12 KB

labels.md

File metadata and controls

61 lines (43 loc) · 1.12 KB

Labels

Before that setup the default client, or will inject your own client.

Creating

new_label = {'name': 'first label'}
label = await club_house.labels.create(**new_label)

Updating

id_label = 116
updated_fields_label= { 'name': 'Label updated now'}
label = await club_house.labels.update(id_label, **updated_fields_label)

Get by id

id_label = 116
label = await club_house.labels.get(id_label)
#epic = await club_house.labels(id_epic) alternative 
print(label)

Deleting by id

When None is returned this means it was successfull

id_label = 116
await club_house.labels.delete(id_label)

Listing

Returns a list of all labels

list_labels = await club_house.labels()

List Label Epics

id_label = 14
epics = await club_house.labels.get(id_label, 'epics')
#epics = await club_house.labels(id_label, 'epics')

List Label Stories

id_label = 14
stories = await club_house.labels(id_label, 'stories')
#stories = await club_house.labels.get(id_label, 'stories')