Cannot resolve issue via REST API

Hi all,

I am trying to resolve an issue via the REST API but I keep getting the following error:

Could not find valid 'id' or 'name' in resolution object.

I have used the API to fetch all valid resolutions before-hand so I know I am passing in the correct resolution. I have tried both Name and ID - still get the same error.

The JSON I am sending is:

{
"fields": {
"resolution": "Done"

},
"transition": {
"id": "801"
}
}

Using the following URL:

https://xxx.atlassian.net/rest/api/2/issue/TICKET-10163/transitions

I did read that the resolution field would have to be on the edit form for this to work, but having added it I still get the same error.

Has anyone else experienced this?

Thanks.

 

2 answers

1 accepted

0 votes
Warren Levy Community Champion Oct 04, 2017

Hi Ben

This is the JSON that I use

{
"update": {},
"transition": {
"id": "241"
},
"fields": {
"resolution": {
"name": "Done"
}
}
}

 and this is the call that I use

/rest/api/2/issue/JRA-5475/transitions?expand=transitions.fields&transitionId=241

Thank you Warren! Comparing your JSON to mine I can clearly see now I missed the resolution "name" key. I'll go back to the Java library that generated that code and try and fix it.

Thanks for your help.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot