Make epic link selector pull from epics search API #978
Labels
Difficulty/1:Easy
Easy ticket
Good First Issue
Suitable for first-time contributors
Hacktoberfest
Help Wanted
Community help wanted
Tech/Go
Tech/ReactJS
Tech/TypeScript
Type/Enhancement
New feature or improvement of existing feature
Milestone
At the moment, we are using JQL directly to fetch epic links for a given project. This is resulting in inconsistent behavior between Mattermost's epic selector and Jira's.
mattermost-plugin-jira/webapp/src/components/data_selectors/jira_epic_selector/jira_epic_selector.tsx
Line 79 in 17e8a47
We can instead use the autocomplete endpoint for a project's epic links:
https://myorg.atlassian.net/rest/agile/1.0/epic/search?excludeDone=true&projectKey=CLD&maxResults=20&query=
One known limitation to the current implementation is that the epic links must be a member of the same project as selected in the MM form. Jira's epic link selector allows for epics from other projects, so that functionality should be tested with this feature.
The text was updated successfully, but these errors were encountered: