{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "538503",
   "self": "https://bugs.mojang.com/rest/api/2/issue/538503",
   "key": "BDS-18526",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "5",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10300",
         "value": "Unconfirmed",
         "id": "10300",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2023-09-29T11:37:14.000+0300",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-18526/watchers",
         "watchCount": 0,
         "isWatching": false
      },
      "created": "2023-07-11T14:08:29.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [
         "Server",
         "scripting-api"
      ],
      "customfield_11700": "{}",
      "versions": [
         "21519"
      ],
      "issuelinks": [],
      "assignee": null,
      "updated": "2023-09-29T11:37:14.000+0300",
      "status": "5",
      "description": "The enum HttpRequestMethod don't work with the last version of @minecraft/server (1.5.0-BETA), with previous version (1.3.0) it's work, with the same package @minecraft/server-net;\r\n\r\n\u00a0\r\n\r\n*Steps to Reproduce:*\r\n1. You just need to create ato write \"const req = new mcnet.HttpRequest(uri);\"\r\n2.\u00a0 And after set the method \"req.method = mcnet.HttpRequestMethod.POST\"\r\n3. And after execute it on the server\r\n\r\n*Observed Results:*\r\n_We received a error message for the line \"req.method = mcnet.HttpRequestMethod.POST\"_\r\n\r\n*Expected Results:*\r\n\r\nNo error message and set the method work without problems.\r\n\r\n\u00a0\r\n\r\nI found a solution for the last version of the API but it's needed to do it in JavaScript like that:\r\nconst keys = Object.keys(mcnet.HttpRequestMethod);\r\nconst index = Object.keys(mcnet.HttpRequestMethod).indexOf(\"Post\");\r\nconst value = Object.values(mcnet.HttpRequestMethod)[indexOfApple];\r\n\u00a0\r\n\u00a0\r\nThanks for your attention.\u00a0\r\n\u00a0",
      "customfield_11100": 0.0,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": "[Briefly describe the bug here]\r\n\r\n*Steps to Reproduce:*\r\n# [Step 1]\r\n# [Step 2]\r\n# [Step 3]\r\n\r\n*Observed Results:*\r\n[Describe what happens]\r\n\r\n*Expected Results:*\r\n[Describe what should happen]\r\n\r\n*Screenshots/Videos attached:* [please attach an image or short video]\r\n\r\n*Notes:*",
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "enum HttpRequestMethod don't work ",
      "creator": "JIRAUSER758329",
      "reporter": "JIRAUSER758329",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i2e9wv:",
      "environment": "On linux server with code writted with typescript with gulp to compile ",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/538503/comment/1279893",
               "id": "1279893",
               "author": "JIRAUSER648376",
               "body": "Hi\r\n\r\nDoes this issue still occur after updating to 1.20.15? \r\n\r\nThis ticket will automatically reopen when you reply. ",
               "updateAuthor": "JIRAUSER648376",
               "created": "2023-09-15T13:01:10.288+0300",
               "updated": "2023-09-15T13:01:10.288+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/538503/comment/1280287",
               "id": "1280287",
               "author": "JIRAUSER758329",
               "body": "Hi,\r\n\r\nI just try it and it's work now.\r\n\r\nThanks for the fix.\r\n\r\n\u00a0\r\n\r\nBest Regards,",
               "updateAuthor": "JIRAUSER758329",
               "created": "2023-09-19T11:42:41.877+0300",
               "updated": "2023-09-19T11:42:41.877+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/538503/comment/1282290",
               "id": "1282290",
               "author": "JIRAUSER648376",
               "body": "Closing as per comment above. ",
               "updateAuthor": "JIRAUSER648376",
               "created": "2023-09-29T11:37:14.098+0300",
               "updated": "2023-09-29T11:37:14.098+0300"
            }
         ],
         "maxResults": 3,
         "total": 3,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-18526/votes",
         "votes": 0,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 5,
      "total": 5,
      "histories": [
         {
            "id": "2834939",
            "author": "JIRAUSER758329",
            "created": "2023-07-11T14:08:58.710+0300",
            "items": [
               {
                  "field": "labels",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "",
                  "to": null,
                  "toString": "za"
               }
            ]
         },
         {
            "id": "2834940",
            "author": "JIRAUSER758329",
            "created": "2023-07-11T14:09:44.650+0300",
            "items": [
               {
                  "field": "labels",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "za",
                  "to": null,
                  "toString": "Server scripting-api"
               }
            ]
         },
         {
            "id": "2867278",
            "author": "JIRAUSER648376",
            "created": "2023-09-15T13:01:10.294+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10001",
                  "toString": "Awaiting Response"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         },
         {
            "id": "2868555",
            "author": "arisabot",
            "created": "2023-09-19T11:42:51.393+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": "10001",
                  "fromString": "Awaiting Response",
                  "to": null,
                  "toString": null
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "5",
                  "fromString": "Resolved",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "2874111",
            "author": "JIRAUSER648376",
            "created": "2023-09-29T11:37:14.105+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "5",
                  "toString": "Cannot Reproduce"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}