Issues

Issue #9703 resolved

CreateIssue REST API always return 400 error

sripai
created an issue

I am trying to build node js wrapper for the bitbucket REST API and while i was trying out Issue create REST API i am always getting a 400 Error which says some mandatory fields are missing. Below is my psuedo code

this.createIssue = function(accountName, repoName, title, content,callback) {

    var options = {
        rejectUnauthorized: this.strictSSL,
        uri: this.makeUri('/repositories/'+accountName+'/'+repoName+'/issues'),
        method: 'POST',
        followAllRedirects: true,
        json: true,
        body: 
          {title: title,
           content: content,
           kind: "bug",
           priority: "major",
           status:"new"


          },

    };

Am i missing something , or am i doing something wrong ?

Comments (5)

  1. Log in to comment