Skip to content

Commit

Permalink
GITBOOK-588: Ticket Creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gewenyu99 authored and gitbook-bot committed Oct 31, 2024
1 parent 79bf8e2 commit 0ff7d97
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/connect-jira.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/create-ticket-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/create-ticket-kebab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/example-jira-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/example-jira-ticket (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/example-jira-ticket (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/example-jira-ticket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions flaky-tests/create-a-new-ticket.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Create a New Ticket

When Trunk Flaky Tests detects a broken or flaky test, you can create an automatically generated ticket for your team to pick up and fix the test. Currently, Ticket Creation only supports integrations with Jira, but the automatically generated ticket content is formatted in Markdown and can be copied to other platforms like Asana, Linear, or GitHub issues.

### Connecting to Jira

<figure><img src="../.gitbook/assets/example-jira-form.png" alt=""><figcaption></figcaption></figure>

To connect a Jira Cloud project, navigate to Settings > Repositories > Jira Cloud. Then complete the form and click Connect to Jira Cloud with the following information.

<table data-header-hidden data-full-width="true"><thead><tr><th width="176"></th><th width="266"></th><th></th></tr></thead><tbody><tr><td>Field Name</td><td>Description</td><td>Examples</td></tr><tr><td>Jira URL</td><td>The URL to your Jira Cloud project.</td><td><code>https://trunk-io.atlassian.net</code></td></tr><tr><td>Project Key</td><td>The project key for your Jira project.</td><td><code>KAN</code></td></tr><tr><td>Email</td><td>The email associated with your Jira API token.</td><td><code>[email protected]</code></td></tr><tr><td>Jira API token</td><td><a href="https://id.atlassian.com/manage-profile/security/api-tokens">Create your Jira API token here.</a></td><td><code>ATATT*****19FNY5Q</code></td></tr><tr><td>Default label(s) for new tickets</td><td>Labels applied to new Jira tickets created through Trunk Flaky Tests</td><td><code>flaky-test, debt</code></td></tr></tbody></table>

After connecting to Jira, you can specify a default issue type for new tickets and a default assignee for the new tickets.&#x20;

### Ticket Content

Trunk Flaky Tests automatically generates tickets complete with a title and description. If you’re connected to a project management software like Jira, there are further options to assign default labels or assignees.

The ticket description contains the following information:

* Identifier of the test
* Since when the test has been labeled flaky
* The last time this test has failed
* The impact when run on PRs
* The impact when run on branches
* Quarantine status
* Most common failure reasons

### Create a New Ticket&#x20;

You can create a new ticket for any test listed in Trunk Flaky Tests.&#x20;

You can create a new ticket on the Flaky Test dashboard by clicking on the options menu for any test cases listed.

<figure><img src="../.gitbook/assets/create-ticket-kebab.png" alt=""><figcaption></figcaption></figure>

You can also find a Create Ticket button in the top left corner of the test case details screen as well.

<figure><img src="../.gitbook/assets/create-ticket-button.png" alt=""><figcaption></figcaption></figure>

Before you create the ticket, you will have a preview of the title and description of the ticket.

<figure><img src="../.gitbook/assets/example-jira-ticket (1).png" alt=""><figcaption></figcaption></figure>

#### Create with Jira

If you are connected to Jira, you can click the **Create Jira Ticket** button at the end of the modal, which will automatically create a ticket with the configured labels and assignees.

#### Create Manually

If you have not set up an integration, Trunk Flaky Tests will still generate a ticket title and description so you can copy and paste the details into your project management software.
7 changes: 5 additions & 2 deletions summary.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Table of Contents
# Table of contents

* [Welcome](welcome.md)
* [Code Quality](code-quality/README.md)
Expand Down Expand Up @@ -188,6 +188,7 @@
* [unittest](flaky-tests/frameworks/unittest.md)
* [Vitest](flaky-tests/frameworks/vitest.md)
* [XCTest](flaky-tests/frameworks/xctest.md)
* [Create a New Ticket](flaky-tests/create-a-new-ticket.md)
* [Uploader](flaky-tests/uploader.md)
* [Quarantining](flaky-tests/quarantining.md)
* [PR Test Summary](flaky-tests/github-pull-request-comments.md)
Expand Down Expand Up @@ -244,8 +245,10 @@
* [Integration for Slack](administration/integration-for-slack.md)
* [GitHub App Permissions](administration/github-app-permissions.md)
* [Manage Members & Organizations](administration/manage-members-and-organizations.md)

## Links

* [Open App](https://app.trunk.io)
* [Slack Community](https://slack.trunk.io)
* [Changelog](https://trunk.io/changelog)
* [Feature Requests](https://features.trunk.io)
* [Feature Requests](https://features.trunk.io)

0 comments on commit 0ff7d97

Please sign in to comment.