Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-6132

Api allows creation of Issues without providing field 'content'

    XMLWordPrintable

    Details

      Description

      as stated in the api-docs the field 'content' is declared as necessary - but Issues will be created without this argument...

      #!ruby
      
      response = connection.post(make_path, {:title => title })
      rsp = JSON.parse(response.body)
      pp rsp
      

      results in:

      #!json
      
      {"status"=>"new",
       "priority"=>"trivial",
       "title"=>"geht nich",
       "reported_by"=>
        {"username"=>"rpaulokat",
         "first_name"=>"rene",
         "last_name"=>"paulokat",
         "display_name"=>"rene paulokat",
         "is_team"=>false,
         "avatar"=>
          "https://secure.gravatar.com/avatar/a6ebaaa00666e4f1934d9ca2c024aaf3?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Ff2d828db6961%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32",
         "resource_uri"=>"/1.0/users/rpaulokat"},
       "utc_last_updated"=>"2013-01-27 16:46:58+00:00",
       "comment_count"=>0,
       "metadata"=>
        {"kind"=>"bug", "version"=>nil, "component"=>nil, "milestone"=>nil},
       "content"=>"",
       "created_on"=>"2013-01-27 17:46:58",
       "local_id"=>3,
       "follower_count"=>0,
       "utc_created_on"=>"2013-01-27 16:46:58+00:00",
       "resource_uri"=>"/1.0/repositories/rpaulokat/bitb-issues/issues/3",
       "is_spam"=>false}
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            6abf656c691e rene paulokat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: