Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-7932

Jira Align API - Can't create Story with Jira Project set

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • No

      Issue Summary

      Can't create (POST) or update (PATCH) stories using API when passing the 
      jiraProjectKey in the endpoint rest/align/api/2/stories/STORY-ID.
       
      The API returns the following error 400:
      Cannot create story. Value for jiraProjectKey is invalid.
      or
      Cannot update story with id XXXXXX. Value for jiraProjectKey is invalid.

      Steps to Reproduce

      1. Run a PATCH or POST rest/align/api/2/stories/STORY-ID to add or update a Story adding a Jira Project there
      2. Example of body/payload for POST can be the following
        1.   
              {
          "title": "Luiz Story API",
          "description": "Luiz Example",
          "featureId": featureId,
          "type": 1,
          "state": 0,
          "programId": programId,
          "releaseId": releaseId,
          "iterationId": iterationId,
          "teamId": teamId,
          "jiraProjectKey": "Jira Project Key",
          "tags": "tag"
              } 
      1. The example of body/payload for POST can be the following
        1.   [  {
                  "op": "replace",
                  "path": "/jiraProjectKey",  
                  "value": "LA"
              }
          ]
          

      Expected Results

      Jira Align API creates the Story with the Jira Project set already.

      Actual Results

       
      The API return the following error 400:
      Cannot create story. Value for jiraProjectKey is invalid.
      or
      Cannot update story with id XXXXXX. Value for jiraProjectKey is invalid.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

        1. screenshot-1.png
          screenshot-1.png
          303 kB
        2. screenshot-2.png
          screenshot-2.png
          218 kB

              Unassigned Unassigned
              f9fc804f30c6 Luiz Felipe Arruda
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 25m
                  25m