Jira is crucial for testers and developers to collaborate. When used for Defect Management, testers and developers log issue types, often of type “bug” in Jira. Whether you use Jira Cloud, Jira Data Center, or Jira Server, you can integrate Functionize with your Jira projects.
Set up the integration to map your custom Jira Issue Type for defects to the appropriate project. This is a many to many relationship where you can submit defects from Functionize to multiple Jira Projects or Issue Types.
After you execute Functionize tests, dig into any potential failures. Then, directly submit defects from Functionize directly into Jira.
Setup the Jira Integration
Establish Connection
Only Team Administrators may set up the Jira integration. Other users will not be able to access the Team tab.
- Open the Team page, and then click the Integrations tab.
- On the left, select Jira from the Defect Management section.
- In the main panel, provide credentials for the connection. Select Cloud or Server/Data Center.
- Enter the URL for your Jira instance, your Jira username, and your Jira API token (not your password). These can be found in your Jira account by a Jira Admin by accessing Apps > Manage Apps > API Keys
For Jira API token assistance, read here: Manage API tokens for your Atlassian account - Click Test Sign In. The status next to the button will update to "Connection established" with a green check mark.
Map Projects
- Once you've established the connection, scroll down to the Project Mappings section.
- Select the Functionize and Jira projects you wish to link together. This allows you to submit defects (into the Jira project) from the test results (from the Functionize project).
- Defect Type: Select the Issue Type you wish to create into Jira. This can be a Bug, a Defect, or whatever Issue Type (including custom issue types) your teams use to represent issues that need to be resolved.
- Details: Select the Jira text area field that you would like to auto-populate using Functionize data. We suggest adding a Functionize Data custom field to Jira Defects to keep the data well-structured.
- Fields: Select the Fields to be displayed when creating Jira Defects from Functionize.
- Click Submit to save your connection details.
NOTE: Multiple projects may be added, however each must be mapped individually.
Create a Defect in Test Detail view
After executing a test, review any failures or areas of concern. Creating a defect in Jira linked to that test helps to provide developers with more information. This helps them understand what needs to be fixed, and helps you to keep track of bug resolution.
- To create a Defect, open a Test Case to the Test Details page.
- Find the test step that represents the failure or area of concern. Click the Action banner to expand and show the Action Settings.
- Click on the Create Defect button.
- Select if you wish to Create a new defect or Link to an existing defect. Click Continue.
- Enter the relevant details for the Defect, then click Create Defect. By default, the Details mapped field will contain Jira’s tabular format that includes details about the current test execution for links back to Functionize from the Jira Defect about to be created.
- The Test Detail page will display the Defect bug icon in the header. Click the button to see a list of Defects linked to this test.
- The Defect bug icon will also display at the right end of the Action banner. Click the icon to see a list of Defects linked to this Action.
- Click the Issue name to open Jira and view the Defect. A New Defect button is also available to aid in filing multiple issues for a single Action. Note the number on the bug icon corresponds to the number of Defects filed for the Test or Action according to the page or Action icon.
Create a Defect in Slider view
- Open the Slider View by clicking the View Results button at the top of the Test Detail screen or click the View button to the right of the failed Action.
- Slider View will open.
- Open the Actions ... Menu on the failed Action and select Create Defect. Select Create new Defect or Link to existing Defect. Click Continue. Enter the issue details and click Create Defect.
- The Action will display the bug icon indicating a Defect is linked. Clicking the icon will display the list of Defects filed on that Action.
Filtering Tests
- You can also see which tests have defects filed directly from the Project page. This can be particularly useful to verify resolved defects on a regular basis to ensure that only tests that are failing are mapped to unresolved defects.
- As in the Test Detail view, clicking on the Bug icon will display the defects filed.
- You can also filter by the status of your Jira tickets by using the "Defects" menu with the Jira icon.
View the Defect in Jira
- Click the link for the Jira issue in the Defect display, either from the test step or the test details header.
- Jira will open and the ticket can be edited as usual.