Skip to content

feat: update tags and create run from api

Navin Karkera requested to merge navin/tag-run-api into master

Implements API to update tags and create Run using information from webhook triggered by SprintCraft.

Supporting information

Testing instructions

Step by step procedure

  1. Start server using make
  2. Create few users, one team and one checklist definition with some tags (small case tags).
  3. 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.
  4. Visit http://localhost:8000/swagger/ and find /api/workflow/checklist/run/sprintcraft_webhook/ API.
  5. 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"}
  1. Visit http://localhost:8000/admin/workflow/run/ and make sure the Run is created.
  2. 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

Merge request reports