def __init__(self, url, api_key, project_group, board):
self.url = url
self.cookie = get_cookie(url, api_key=api_key)
self.client = SFStoryboard(urljoin(url, "storyboard_api"),
self.cookie)
try:
self.project_group = self.client.project_groups.find(
name=project_group)
except exceptions.NotFound:
raise Exception('projects group not found')
self.stories = self.client.stories.get_all(
project_group_id=self.project_group.id)
self.board_id = None
if board:
try:
self.board_id = self.client.boards.find(title=board).id
except exceptions.NotFound:
raise Exception('board not found')
self.board_lanes = {}
for lane in self.client.worklists.get_all(board_id=self.board_id):
if not lane.archived and lane.title in LANES:
self.board_lanes[lane.title] = lane
sf_scrummaster.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录