Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem with requesting status change in BitBucket Pull Request.

ECOMMPAY LIMITED February 22, 2019

Problem with requesting status change in BitBucket Pull Request.
Trying to send new status for participant:

curl -v -u user -X PUT -d '{ "code": "NEEDS_WORK" }' -H 'X-Atlassian-Token: no-check' -H 'Content-Type: application/json' 'http://bitbucket.server/rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user'

Server responds:HTTP/1.1 500

In BitBucket log record:

2019-02-22 09:36:58,058 ERROR [http-nio-7990-exec-30] user@1990A0Tx576x18598124x2 xxx.xxx.xxx.xxx,"PUT /rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user HTTP/1.0" c.a.s.i.r.e.DefaultUnhandledExceptionMapperHelper Unhandled exception while processing REST request: "PUT /rest/api/1.0/projects/PUP/repos/control-repo/pull-requests/810/participants/user HTTP/1.0"

How can we request status change to NEEDS_WORK for participant?

2 answers

1 accepted

1 vote
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2019

Hi,

It looks like the JSON you're posting isn't exactly right for that API method - see

https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8297253088:

 

{
    "user": {
        "name": "charlie"
    },
    "approved": true,
    "status": "APPROVED"
}

Cheers,

Christian

Premier Support Engineer

Atlassian

0 votes
ECOMMPAY LIMITED February 22, 2019

Thank you, Christian!

It helped us.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events