Hi All,
I have requirement to update an issue using rest api.I am using below rest api.
As per the documentation /rest/api/2/issue/{issueIdOrKey}/editmeta.
operation using "PUT".
I have two questions here.
1.Should I place "/editmeta" .Is it mandatory.
2.Can you please send me to update status or priority related request payload.
Regards,
Nageswara K.
Could you please send me for request payload for status and correspond URI.
That should be great.
Regards,
Nageswara K.
Hi Alexey,
what is transition and transition id.how can i identify this transition id.Could you please help me on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
419 unsupported media type.but i am sending json format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
Values got updating..Thank you very much your support..
Regards,
Nageswara .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To update priority you should use PUT rest/api/2/issue/{issueIdOrKey}.
Example of JSON would be like this:
{"update":{"priority":[{"set":{"name" : "Trivial"}}]}}
To update a status you should perform a transaction, leading to the status. You should use POST /rest/api/2/issue/{issueIdOrKey}/transitions
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-doTransition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey..
Thank you so very much for your reply..
I am new to rest services.
I am sending json like this.
URI:rest/api/2/issue/10206
Operation:PUT.
Request Payload is:
{
"update":{
"priority":[
{
"set":
{
"name" : "Low"
}
}]
}
}
I am not able to getting any response.not getting update in jira.Could you please guide me on this
Regards,
Nageswara K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure how you send your request. But there is always a response. I usually use SOAP UI to play with REST calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
I am using post man.
I have provided authentication.
put response not getting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the response code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is you content-type header? It must be application/json
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you follow this link, you will see an example:
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-doTransition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you create a workflow, you add statuses and then connect statuses by transitions. When you go from the To Do status to the In Progress status, you push a button. This button performs a transition. You can find the transition id, if you open your workflow in edit mode. In the picture the id of the In Progress transition is 11
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.