How to edit customfields in closed Jira issue using Rest API?

Hi,

I am able to edit Customfields in jira issue which are not in Closed state through Rest API from C# code as followes. 

string jSonContent = string.Concat(@"{ ""fields"" : { ""customfield_12160"": [ """, ReporterLabel ,@""" ], ""customfield_12151"": """, LatestInformation, @"""}}");

 request.AddParameter("application/json", jSonContent, ParameterType.RequestBody);

 

But I am getting error to edit customfields in closed Jira issue as below.

JIRA-XXXX: {"errorMessages":[],"errors":{"customfield_12160":"Field 'customfield_12160' cannot be set. It is not on the appropriate screen, or unknown.","customfield_12151":"Field 'customfield_12151' cannot be set. It is not on the appropriate screen, or unknown."}}

Pleas let me know the actual method to edit closed jira issues also.

Thanks in advance. 

1 answer

0 vote

I suspect the workflow for the issue has the "do not allow edit on this issue" property set on the "closed" status.

You will need to transition the issue out of "closed", or change the workflow to remove the property.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

67 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you