It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't update (PUT) issue priority with curl

With this curl

curl -u user:password -X PUT --data "{\"update\":{\"priority\":[{\"set\":{\"name\":\"Bassa\"}}]}}" -H "Content-Type: application/json" http://myserver/rest/api/2/issue/MYISSUE-142

... I get

{"errorMessages":["Internal server error"],"errors":{}}

BUT, if I change the priority of the issue (MYISSUE-142) using the gui, after that the same curl call works as expected.

Why? How can I update the issue without having to manually "initialize" the priority?

Thanks,
Marco

2 answers

0 votes

Hi! 

 

Have you check from developer tools generated curl link? 

 

Looks like everything is ok.

 

Cheers,

Gonchik Tsymzhitov

Hi Marco,

were you able to solve the problem meanwhile?

I got exactly the same issue. Updating priority through the api works like a charm, but only if the priority field was set before. Updating an issue which has priority "null" (which also means it is not visible in gui) results in a http 500 server error.

 

Thanks,

Erik

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you