Forums

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

Jira -How to re-open an issue in jira via Jira rest API?

George Chuene October 5, 2018

Hi. I am trying to change the status of an issue in Jira via rest API but I am getting this error below 

Error: 

{"errorMessages":["You do not have permission to edit issues in this project."],"errors":{}}

I am pretty sure that the user has permission to view and edit the issue as he's the system administrator.

Here is my input data: 

{
 "" update "": {
  "" comment "": [{
    "" add "": {
     "" body "": "" Testing.""
    }
   }
  ]
 },
 "" fields "": {},
 "" transition "": {
  "" id "": "" 5 ""
 }
}

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
October 5, 2018

Hello,

There could be a worklfow property defined for the Closed status.

You can also use the Permission helper (Sysytem -> permission helper) to find out if you have permissions to edit an issue.

George Chuene October 5, 2018

Hi Alexey 

 

Thanks for your prompt response. Sorry I am newbie on this Jira project but I think we are using the default Issues statuses with very minimum custom workflows. I am able to reopen closed or resolved issue on the browser. I only get the "You do not have permission to edit issues in this project." when I update the issue via the Rest API

I have checked the permission helper and 

below is the summary of the permissions that I have:

111.PNG

Alexey Matveev
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.
October 5, 2018

According to the permission helper. You should be able to edit the issue, which you checked. 

You should try to localize your error. Try to just add a comment and have a look if it works

George Chuene October 5, 2018

Add or editing comments and updating the statuses to closed, In progress and On Hold does work. The issue is on the re-opening or adding comments on a closed / resolved issues. 

Alexey Matveev
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.
October 5, 2018

Did you have a look at the workflow properties for the Closed status?

George Chuene October 5, 2018

Hi Alexey

 

Thanks for your reply and willing to assist, much appreciated. 

Below are the screenshots of workflow properties for closed status: 

 

WFP1.PNGWFP2.PNGWFK3.PNG

Alexey Matveev
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.
October 5, 2018

You should delete the jira.issue.editable property

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events