Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-5744

Behaviour script initial execution fails to fetch 'Linked Issues' field value populated by Xray plugin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Triage
    • Priority: L3
    • Resolution: Unresolved
    • Affects Version/s: 6.25.0
    • Fix Version/s: None
    • Labels:
      None
    • Critical Points:
      0.8

      Description

      When using Xray Test Management for Jira plugin to create Test, it will automatically populate the 'Linked Issues' field value with the current issue. However, Behaviour script initial execution fails to copy the value as it will fetch null.

      Steps to Reproduce

      1. Install Xray Test Management for Jira plugin
        1. Go to Jira Administration > Manage Apps > Xray > Issue Type Mapping and map it to the required Issue Types
        2. Go to Jira Administration > Manage Apps > Xray > Requirement Projects and map it to the required Projects
      2. Create a Single Issue Picker field and add it to the Screen used by the Project/Issue Type
      3. Create a Behaviour, map it to the same Project/Issue Type and add a script to copy the 'Linked Issues' field value and set it in the created field. Example:
        def issuelinks = getFieldById("issuelinks-issues")
        def issueLinksValue = issuelinks.value
        log.warn("Linked Issues value : ${issuelinks.value}")
        
        def field = getFieldByName("Single Issue Picker")
        field.setFormValue(issueLinksValue)
        log.warn("Single Issue Picker value : ${field.value}")
        
      4. Create an Issue in the Project
      5. In the created Issue, create a Test:

      Expected Behaviour

      The 'Linked Issues' field value gets copied over into the created field

      Actual Behaviour

      The 'Linked Issues' field value does not copy over into the created field. The fetched value is null.

      Workaround

      Re-run the Behaviour script (e.g.: Copy the script into another field. When the field gets manually updated in the Screen, the script will get executed)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            imazuki Irfan Mazuki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: