Allure TestOps - Issues

Add an issue link

You can add an issue link from the issue tracker to the test case or test result manually or you can set up automatic adding issue links to the test cases.

  1. In the Test cases section, select a test case.

  2. On the Overview tab, go to the test case Issues section and click Edit.

  3. Select Tracker and Key from the drop-down lists, and then click Submit.

    Test case add issues form

    You can add issue links to a test results in the same way.

To sync issue data automatically, you need to set the Sync check-box when configuring Issue Tracker.

You can also add a link to the issue for the Mute.

Add issue link for the TestResult

You can configure automatic adding issue links to the test cases using annotations.

  1. In the test case code, create an annotation.
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import io.qameta.allure.LabelAnnotation;

@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@LabelAnnotation(name = "jira")
public @interface JiraIssue {
    String value();
}
  • JiraIssue is the name of annotation in the example.

  • @LabelAnnotation declares label parameter with the name “jira” and the value () that Allure will use in test cases.

  1. Mark all required test cases with the created annotation JiraIssue.
    @JiraIssue("AS-4")
    @Test
    void testEveryting() {
        ...
    }
  1. Configure issue mapping for the Allure project.

    To do that, go to the Settings tab of required project, then to the Issues section. Create a key with the value from @LabelAnnotation (name = “jira”).

    Issues schema settings

  2. Now the test cases in Allure TestOPs will contain links to issues.