Add support for handling Work Item URLs in Duo Chat Epic tool

Summary

Currently, Duo Chat is able to handle URLs that point to Epics, Issues, and Merge Requests. Since devopsplan is in process of migrating Epics to use Work Items, soon these Epics will also be available to access under /work_items URL, additionally, Issues too are scheduled to be migrated later this year, so it is important that Duo Chat is able to handle the new URL scheme.

image

This issue is scoped only to Epics.

Implementation plan

  • Add changes to the EpicReader tool description to mention work items urls. Note: we need to support both executors, so this issue could be delivered in 17.4 without any blockers.
    • For ZeroShot executor here
    • For SingleAction executor here
  • Add changes to the tool prompt to handle work items urls code
  • Add changes to extract needed resource to process work items code
  • Add tests
  • Update evaluation dataset, could be extracted as a follow-up issue.
Edited by Tetiana Chupryna