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

createDate is being updated instead of lastUpdatedDate for Goals in Jira Align

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      Whenever updating a Goal the createDate field is being updated instead of lastUpdatedDate for Goals in Jira Align.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a Goal in Objectives tree in Jira Align
      2. Update any field of the created Goal in Jira Align
      3. Do a GET for the Goal created using API and check results
      4. Check the createDate and lastUpdatedDate, the createDate is being updated instead of lastUpdatedDate

      Expected Results

      lastUpdatedDate field to be updated when an update is done to a Goal

      Actual Results

      createDate field is being updated instead of lastUpdated

      Example in alignsupport Lab:

      API GET using a created Goal
      https://alignsupport.jiraalign.com/rest/align/api/2/Goals/232

      Response with

      {
        "id": 232,
        "type": 8,
        "description": "Mangala Goal - 2024",
        "parentId": 0,
        *"createDate": "2024-01-29T14:24:32Z",*
        "ownerId": "661808",
        "percentComplete": 0,
        "feasibility": 0,
        "importance": 0,
        "divisionId": null,
        "marketAssessment": null,
        "targetDate": "2024-03-31T00:00:00Z",
      *  "lastUpdatedDate": "2023-12-13T07:26:29Z",*
        "reference": null,
        "snapshotIds": [
          85,
          115
        ],
        "allocations": [],
        "links": [],
        "self": "https://alignsupport.jiraalign.com/rest/align/api/2/goals/232"
      }

      Workaround

      Update the lastUpdatedDate field using PATCH API command as in the example below:

      curl -X 'PATCH' \
        'https://alignsupport.jiraalign.com/rest/align/api/2/Goals/232' \
        -H 'accept: */*' \
        -H 'Authorization: bearer APITOKEN
        -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
        -d '[
        {
          "op": "replace",
          "path": "/lastUpdatedDate",
          "value": "2024-06-18T14:24:32Z"
        }
      ]'
      

              dfuller@atlassian.com Don Fuller
              121fc1e6b3d8 Andre Deme
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: