Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-10018

Inconsistent Behaviour When Locking Xray Test Plans

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 6.14.0
    • None
    • Test Plan
    • None
    • Work flow 

    • UNCOVERED

    Description

      Description

      Xray Cloud does not consistently enforce the Jira workflow property"jira.issue.editable = false" for Test Plans.
      Although the Test Plan becomes non-editable when viewed directly, it can still be modified indirectly from a Test Case, which leads to data integrity issues and violates expected workflow behavior.

      This inconsistency allows users to add Tests to a locked Test Plan even when the Test Plan itself is explicitly configured as non-editable.

      Pre-conditions

      • Jira Cloud project with Xray Cloud installed.
      • Workflow configured for Test Plan issue type with the following statuses:
           Openjira.issue.editable = true
           Lockedjira.issue.editable = false
      • At least one Test issue exists.

      How to reproduce

      Step 1 — Create and Verify an Editable Test Plan

      1. In Jira, create a new issue of type Test Plan.
      2. Set the Status of the Test Plan to Open.
      3. Open the Test Plan.
      4. Click Add Tests and add any existing Test.
      5. Remove the Test again.

      Step 2 — Lock the Test Plan

      1. Change the Status of the same Test Plan from Open to Locked.
      2. Open the Test Plan again.
      3. Attempt to:
      • Add a Test
      • Remove a Test
        Result:
        All modification options are disabled.
        The Test Plan cannot be edited directly (expected behavior).

      Step 3 — Modify the Locked Test Plan Indirectly 

      1. Open any existing Test issue.
      2. In the Test issue, click Add to Test Plans.
      3. Select the same Test Plan that is currently in Locked status.
      4. Confirm the action.

      Result (Actual):
      The Test is successfully added to the Locked Test Plan, even though the Test Plan is non-editable.

      Result:

      Actual result/Attachments

      • The user should not be able to add Tests from the Test Plan screen (this already works correctly).

      However, although the Test Plan is locked, the system still allows adding Tests through the Test issue view, which violates the intended restriction and causes inconsistent behavior.

      Expected result 

      • When a Test Plan is in Locked status, it must not be possible to add or remove Tests from it in any way.
      • The user should also not be able to add Tests from the Test issue screen using “Add to Test Plans.”

      Workaround

      N/A

      Attachments

        Activity

          People

            bernardo.cottim Bernardo Cottim
            tripti.kumari Tripti Kumari
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m