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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to set jira resolution state?

Hi ,

I am trying to set the resolution state on jira by the url :  "/rest/api/2/issue/${issueOrkey}/transitions"

and the json body=

{

"fields": {
"resolution": {
"name": "Duplicate"
}
},
"transition": {

"id": "100"

}
}

 

It is not working as getting 500 error or sometimes 405 also,

please help with this issue where I am doing wrong either url or parameter 

I did not get api related to resolution  on jira docs so trying with "transition "  url.

Thanks in advance

1 answer

0 votes

First of all you are doing a POST command right? Since that API link is the same for both POST and GET which will get you very different results. 

When you run the GET command what is your result?  

{"expand":"transitions","transitions":[{"id":"61","name":"Reopen issue","to":{"self":"URL/rest/api/2/status/1","description":"The issue is open and ready for the assignee to start work on it.","iconUrl":"URL/images/icons/statuses/open.png","name":"Open","id":"1","statusCategory":{"self":"https://URL/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To Do"}}}]}

And there's your answer, that specific issue have only one transition available and that has ID:61, not 100..

If this is not the transition that you desire then you need to go in to the issue and/or project and set the correct permissions and fill out the correct data. 

Like UJJWAL PHOPATE likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

106 views 0 2
Read article

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