Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating workitems with changehistory and custom fields #855

Closed
TheSolver74 opened this issue Sep 8, 2023 · 3 comments
Closed

Updating workitems with changehistory and custom fields #855

TheSolver74 opened this issue Sep 8, 2023 · 3 comments
Assignees

Comments

@TheSolver74
Copy link

Hi,

the data in ADO ist not updated correctly. The index "8" with its value change of the "ResolvedReason" causes the trouble. Why is this handled in one transaction/request and just fails on custom fields (e.g. Sstem.State changes do not fail) ? The effort to handle those failing items manually is too big depending on the project items.

Version:
OS: Linux(mono) && windows native

output by jira-export.exe:

[E][16:24:48] VS403691: Update to work item 442449 had two or more updates for field with reference name 'Microsoft.VSTS.Common.ResolvedReason'. A field cannot be updated more than once in the same update.
[E][16:24:48] Work Item 442449 failed to save.

created JSON by jira-export.exe:

{
  "Type": "Bug",
  "OriginId": "PROJECTX-1192",
  "WiId": -1,
  "Revisions": [
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T12:55:42.501+03:00",
      "Index": 0,
      "Fields": [
        {
          "ReferenceName": "System.Title",
          "Value": "[PROJECTX-1192] Enhanced references are not loaded completely"
        },
        {
          "ReferenceName": "Reporter",
          "Value": "[email protected]"
        },
        {
          "ReferenceName": "Custom.FixVersion",
          "Value": "5.2.2;5.3.0"
        },
        {
          "ReferenceName": "Custom.JiraId",
          "Value": "PROJECTX-1192"
        },
        {
          "ReferenceName": "Custom.ResolutionReason",
          "Value": "Done"
        },
        {
          "ReferenceName": "System.Description",
          "Value": "<style>div {\r\n    display: block;\r\n}\r\n\r\ntable.confluenceTable {\r\n    border-collapse: collapse;\r\n    margin: 5px 0 5px 2px;\r\n    width: auto;\r\n}\r\n\r\ntable {\r\n    display: table;\r\n    border-collapse: separate;\r\n    border-spacing: 2px;\r\n    border-color: grey;\r\n}\r\n\r\ntbody {\r\n    display: table-row-group;\r\n    vertical-align: middle;\r\n    border-color: inherit;\r\n}\r\n\r\ntr {\r\n    display: table-row;\r\n    vertical-align: inherit;\r\n    border-color: inherit;\r\n}\r\n\r\nth.confluenceTh {\r\n    border: 1px solid #ccc;\r\n    background: #f5f5f5;\r\n    padding: 3px 4px;\r\n    text-align: center;\r\n}\r\n\r\nth {\r\n    font-weight: bold;\r\n    text-align: -internal-center;\r\n}\r\n\r\ntd, th {\r\n    display: table-cell;\r\n    vertical-align: inherit;\r\n}\r\n\r\n    td.confluenceTd {\r\n        border: 1px solid #ccc;\r\n        padding: 3px 4px;\r\n    }\r\n\r\ndfn, cite {\r\n    font-style: italic;\r\n}\r\n\r\n    cite:before {\r\n        content: \"\\2014 \\2009\";\r\n    }\r\n</style><p>Service retrieves proxy objects instead of complete Enhanced references. <br/>\n(Issue in Baspack)</p>"
        },
        {
          "ReferenceName": "System.State",
          "Value": "New"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T12:55:53.765+03:00",
      "Index": 1,
      "Fields": [
        {
          "ReferenceName": "System.AssignedTo",
          "Value": "[email protected]"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T12:56:05.843+03:00",
      "Index": 2,
      "Fields": [
        {
          "ReferenceName": "System.State",
          "Value": "In Development"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T13:00:46.203+03:00",
      "Index": 3,
      "Fields": [],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T13:13:09.286+03:00",
      "Index": 4,
      "Fields": [],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T13:13:21.529+03:00",
      "Index": 5,
      "Fields": [],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T14:04:37.318+03:00",
      "Index": 6,
      "Fields": [],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T16:11:06.456+03:00",
      "Index": 7,
      "Fields": [
        {
          "ReferenceName": "System.State",
          "Value": "Under Test"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T16:15:17.285+03:00",
      "Index": 8,
      "Fields": [
        {
          "ReferenceName": "Custom.ResolutionReason",
          "Value": "Fixed"
        },
        {
          "ReferenceName": "System.State",
          "Value": "Ready for Release"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    },
    {
      "Author": "[email protected]",
      "Time": "2023-05-08T16:15:22.678+03:00",
      "Index": 9,
      "Fields": [
        {
          "ReferenceName": "System.State",
          "Value": "Released"
        }
      ],
      "Links": [],
      "Attachments": [],
      "Commit": null,
      "AttachmentReferences": false
    }
  ]
}```
@Alexander-Hjelm
Copy link
Collaborator

Related to bug #759

@github-actions
Copy link

This issue is stale because it has been open for 25 days with no activity.

@github-actions github-actions bot added the stale label Oct 27, 2023
Copy link

github-actions bot commented Nov 2, 2023

This issue was closed because it has been inactive for 5 days since being marked as stale.

@github-actions github-actions bot closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants