Show create an issue button in modal window of test reports
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=23963) </details> <!--IssueSummary end--> <!-- The first four sections: "Problem to solve", "Intended users", "User experience goal", and "Proposal", are strongly recommended, while the rest of the sections can be filled out during the problem validation or breakdown phase. However, keep in mind that providing complete and relevant information early helps our product team validate the problem and start working on a solution. --> ### Problem to solve As a developer reviewing test errors, I want to create an issue from failed tests, so that I can share fixing them with my team. ### Intended users * [Sasha (Software Developer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sasha-software-developer) * [Simone (Software Engineer in Test)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#simone-software-engineer-in-test) - who wants to ensure test failures are tracked by the team ### User experience goal The user should be able to use the UI of the Test Summary Report OR JUnit Report to create an issue that contains some details from the test failure. ### Proposal We shipped JUnit test report on merge request widget in 11.4. In that iteration, we didn't ship the issue-creating button in the modal window. Since [security report](https://docs.gitlab.com/ee/user/application_security/index.html#creating-an-issue-for-a-vulnerability) has the same functionality, test report widget also should have the same function. ![Test_Summary_Modal_add_issue](/uploads/86ef844656ed840f8d43b502265d3790/Test_Summary_Modal_add_issue.png) ![JUnit_Report_Add_Issue](/uploads/6407b666c17f65c3b02e11e7712a3f69/JUnit_Report_Add_Issue.png) ### Further details For an MVC any sort of tracking of the issues seems out of scope. If users are getting value from the feature a more robust solution that tracks failed tests -> issues could be required but let's validate this is valuable first. ### Permissions and Security <!-- What permissions are required to perform the described actions? Are they consistent with the existing permissions as documented for users, groups, and projects as appropriate? Is the proposed behavior consistent between the UI, API, and other access methods (e.g. email replies)? Consider adding checkboxes and expectations of users with certain levels of membership https://docs.gitlab.com/ee/user/permissions.html * [ ] Add expected impact to members with no access (0) * [ ] Add expected impact to Guest (10) members * [ ] Add expected impact to Reporter (20) members * [ ] Add expected impact to Developer (30) members * [ ] Add expected impact to Maintainer (40) members * [ ] Add expected impact to Owner (50) members --> ### Documentation Add to appropriate Test Summary and/or JUnit Report docs information and limitations of creating an issue. ### Availability & Testing <!-- This section needs to be retained and filled in during the workflow planning breakdown phase of this feature proposal, if not earlier. What risks does this change pose to our availability? How might it affect the quality of the product? What additional test coverage or changes to tests will be needed? Will it require cross-browser testing? Please list the test areas (unit, integration and end-to-end) that needs to be added or updated to ensure that this feature will work as intended. Please use the list below as guidance. * Unit test changes * Integration test changes * End-to-end test change See the test engineering planning process and reach out to your counterpart Software Engineer in Test for assistance: https://about.gitlab.com/handbook/engineering/quality/test-engineering/#test-planning --> ### What does success look like, and how can we measure that? #### Acceptance Criteria * From the Test Summary an issue is created in the same project with details pre-populated in the Issue Summary ### What is the type of buyer? The buyer for this is likely the Team Load who is focused on managing the single project, a capability that matches to the ~"Gitlab Starter" tier. <!-- What is the buyer persona for this feature? See https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/buyer-persona/ In which enterprise tier should this feature go? See https://about.gitlab.com/handbook/product/pricing/#four-tiers --> ### Is this a cross-stage feature? <!-- Communicate if this change will affect multiple Stage Groups or product areas. We recommend always start with the assumption that a feature request will have an impact into another Group. Loop in the most relevant PM and Product Designer from that Group to provide strategic support to help align the Group's broader plan and vision, as well as to avoid UX and technical debt. https://about.gitlab.com/handbook/product/#cross-stage-features --> ### Links / references
issue