I'm unable to close kita issue. I tried with transition I'd, status id. Nothing is working. I'm using put method rest API. Some one please help me.
We don't know what you've tried, how your system is configured or what errors you are getting.
Thank you for your response. I am using PUT method and updating comments as well as state set to done. Below JSON I have tried.
{
"update": {
"comment": [
{
"add": {
"body": "comments"
}
}
]
},
"transition" : {"id":"31"}
}
Transition id for the value 'DONE' is 31.
When I run this , I am getting 201 but status not changed only comments are updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you are making two separate calls to the REST API? One for comment and one for transition?
What happens if you put the transition first?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, what if you just try the transition alone?
You also say "transition id for done is 31" - are you sure that is the transition ID and not the status id for Done? The id can easily vary by workflow, and 31 is used in a lot of examples, so I've got to check you're not just copying that without checking the workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is correct transition id only , i verifed. I also tried with transition id alone, this time I get 400 code and in response says method failed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that's better, we're getting a proper error message. What does the rest of it say?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm. What type of call is it? put/get/etc?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
somehow the comment i entered is deleted?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using PUT method.
Do I need to use POST method to change the status field?
Also will the transition id differ for for DONE status, in one of the issue, I am getting the transition id as 41, another issue is showing 31. Will it differ for each issue based on current status?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, try post instead.
You don't normally set a JIRA issue status in most cases. A status change is the result of a transition, so it'll be done for you when we can get this to work!
Transition IDs vary, yes. Within a workflow, the ids will always be unique, but the transitions can be shared. You might have "done" with an ID of 31 that is used on Open -> Done, and Dev -> Done, but then have 41 being the transition from Test -> Done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.