Error When Updating TAG Field via API: Invalid Value for featureId"

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • None
    • Affects Version/s: 10.124.0
    • Component/s: REST API

      Issue Summary

      The customer attempts to update field TAG of Story and the update fails when using the API. Below are the relevant API calls. The story has a particular structure (see in the "How to Replicate" section below)
      Updating the TAG thru UI works as expected

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Imagine you have two JA Programs, A and B, associated with Jira Projects A and B, respectively.
      2. Create a story S1 under Project A and a feature F1 in Project B.
      3. Associate S1 with F1.
      4. Now, try to tag them using the UI, and you will succeed.
      5. However, attempting the same operation using the API results in failure
        {'status': 'FAILED', 'status_code': 400, 'response': 'Cannot update story with id xxxxx. Value for featureId is invalid.'}
        

      Expected Results

      Whether the peculiarities of the story structure, we should be able to update the TAG via API as well as in UI

      Actual Results

      The issue encountered when attempting to update a story within this specific structure is linked to the absence of synchronization for the "Additional Program" field.

      Upon investigation, it became evident that the visibility setting of the "Approach" field on the feature's details panel influences synchronization behavior:

      When the "Approach" field is not visible, the Jira connector fails to include the "Additional Program" in the parent feature during Jira to JA synchronization.
      Conversely, when the "Approach" field is visible, the Jira connector does not add the "Additional Program" to the Parent Feature during Jira to JA synchronization.
      In this particular case, the synchronization of the "Additional Program" field is not occurring as expected, causing issues when attempting to update the story within this structure.

      Workaround

      If you encounter a story with this specific structure:

      1. Enable the "Approach" field for the feature.
      2. Resynchronize the feature.
      3. This action will populate the necessary fields required to update the story via the API.

            Assignee:
            Yannick Genin
            Reporter:
            Vasti Marucci
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: