Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-69668

The "Edit Issue" REST API endpoint example has some invalid JSON

XMLWordPrintable

      Issue Summary

      The "Edit Issue" REST API documentation has some invalid JSON in the example request body

      Steps to Reproduce

      1. Search the example for the enpoint /rest/api/2/issue/{issueIdOrKey}/editmeta

      Expected Results

      The "properties" section should look as below:

         "properties":[  
            {  
               "key":"key1",
               "value":"properties can be set at issue create or update time"
            },
            {  
               "key":"key2",
               "value":"and there can be multiple properties"
            }
         ]
      }
      

       

      Actual Results

      The "property" section shows:

      "properties":[
        {"key":"key1","value":'properties' : 'can be set at issue create or update time'},
        {"key":"key2","value":'and' : 'there can be multiple properties'}
      ]
      

      Workaround

      Use the correct syntax

              94e733e73fd4 Robert Klimkiewicz
              dbonotto Dario B (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: