feat: update tags and create run from api
Implements API to update tags and create Run
using information from webhook triggered by SprintCraft.
Supporting information
-
Private-ref
Jira ticket: STAR-2897
Testing instructions
Step by step procedure
- Start server using
make
- Create few users, one team and one checklist definition with some tags (small case tags).
- Create a recurrence with the team and checklist definition created in step 2, and create an event recurrence mapping object with event name and recurrence.
- Visit http://localhost:8000/swagger/ and find
/api/workflow/checklist/run/sprintcraft_webhook/
API. - Send below data (update cell/team name, tags and user emails)
{"board_id": 1, "cell": "<team_name>", "sprint_number": 289, "sprint_name": "BB.289 (2022-12-27)", "participants": {"admin@example.com": ["Recruitment Manager", "FSDD-1"], "admin1@example.com": ["Epic Planning and Sustainability Manager", "FSFF-2"], "admin2@example.com": ["Sprint Manager", "Sprint Planning Manager", "FSFF-3"]}, "event_name": "new sprint", "start_date": "2022-12-27T00:00:00.000Z", "end_date": "2023-01-09T00:00:00.000Z"}
- Visit http://localhost:8000/admin/workflow/run/ and make sure the
Run
is created. - Login to UI: http://localhost:8000/lists as one of the users and make sure correct tasks based on tags are created.
Author concerns
- The tags received from API are converted to small case automatically, if required we can make tag matching case insensitive (while creating tasks).
Edited by Navin Karkera