jenkinsci / xray-connector-plugin

Xray Test Management Connector for Jenkins
https://plugins.jenkins.io/xray-connector/
MIT License
16 stars 13 forks source link

XrayImportFeatureBuilder - Automatic linking of jira test tickets to jira story or epic ticket should be optional. #79

Open PriyankaKoparkar opened 3 months ago

PriyankaKoparkar commented 3 months ago

What feature do you want to see added?

Request:

If certain param is passed, XrayImportFeatureBuilder should not link the issues in jira mentioned in a feature file.

Desc

When a feature file is passed to XrayImportFeatureBuilder, it automatically links jira test tickets (added as tag to Scenario in a feature file) to jira story or epic ticket (added as tag to Feature in a feature file)

This linking should be optional - based on the value of some parameter - say - linkIssues. Default value can be true. If linkIssues=false, xray should not link tickets in jira. It should only sync feature file from folder to jira test tickets.

Example:

In this feature file, TEST-1 was manually linked to STORY-1 and TEST-2 was manually linked to STORY-2. We want it this way. But XrayImportFeatureBuilder links TEST-1 to STORY-2 and TEST-2 to STORY-1. To avoid increasing number of feature files, we want to group the tests and add them in one feature file.

@STORY-1 @STORY-2
Feature: File-Folder 1

@TEST-1 
Scenario: Create Folder
    Given I login
    When I call create folder API
    Then folder is created

@TEST-2
Scenario: Create File
    Given I login
    And a folder exists
    When I call create file API
    Then file is created

Upstream changes

No response

Are you interested in contributing this feature?

No response