taiga_sprint4.py 959 B

123456789101112131415161718
  1. import requests, urllib3
  2. urllib3.disable_warnings()
  3. auth = requests.post(
  4. 'https://192.168.130.161/taiga/api/v1/auth',
  5. json={'type': 'normal', 'username': 'lanfr1904@outlook.com', 'password': 'BTSai123'},
  6. verify=False
  7. ).json()
  8. headers = {'Authorization': f'Bearer {auth["auth_token"]}'}
  9. proj_id = 21
  10. us_payload = {"project": proj_id, "subject": "Sprint 4: Operations & Migrations", "total_points": 5}
  11. new_us = requests.post('https://192.168.130.161/taiga/api/v1/userstories', headers=headers, json=us_payload, verify=False).json()
  12. tasks = ["Create unified PDF presentation for review", "Execute Alembic Database Migration scripting", "Sanitize Ollama Mistral LLM endpoints on .170", "Perform Green Recommendation Engine Demo"]
  13. for t in tasks:
  14. requests.post('https://192.168.130.161/taiga/api/v1/tasks', headers=headers, json={"project": proj_id, "user_story": new_us['id'], "subject": t}, verify=False)
  15. print("Sprint 4 Filled on Taiga!")