Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to transition Issue to fixed via Jira RESTful API

Sai Kiran Konkumatti June 5, 2019

By using Rest API post method url as "/rest/api/2/issue/IS_1/transitions"

and request body as

{"historyMetadata":{},"update":{"comment":[{"add":{"body":"Bug has been fixed."}}]},"fields":{},"transition":{"id":"941"}}

 

with above request i am getting error as below

{"errorMessages":["Can't move (IS-46). You might not have permission, or the issue is missing required information. If you keep having this problem, contact your Jira Administrator."],"errors":{}}

but from Jira cloud UI i am able to update status but from api i'm getting above error

1 answer

0 votes
Pete Singleton
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2019

You may need to specify a value for the Resolution field when moving to "Done" state, e.g.

{
    "update": {
        "comment": [
        {
            "add": {
               "body": "Bug fixed"
           }
       }]
    },
    "transition": {
        "id":"941"
    },
    "fields": {
        "resolution": {
            "name": "Done"
        }
    }
}
Sai Kiran Konkumatti June 7, 2019

i have tried with above json also it's not working

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events