How to update custom fields in closed issue "Update closed Issue" through Rest API

Hi,

We have "Update closed issue" option in our workflow which can be used to update fields of closed issues. Now I want to know how can I use similor option through Rest API.

Thanks in advance. 

1 answer

0 votes
Warren Levy Community Champion Jul 20, 2017

Hi

I don't understand your question. If you're able, in Jira, to update fields of Closed issues, then you would be able to update those same fields via the API. (Almost) anything that can be done through the Jira interface can be done through the API.

So ... are you asking how to use the REST API or have i misunderstood the question?

Hi Thansk for response,
I am able to update not closed issue from C# RestClient using below API
How to edit customfields in closed Jira issue using Rest API? -
http://jira.xxxxxxx.net/rest/api/2/issue/jira-XXXX
and object value
{ ""fields"" : { ""customfield_11111"": [ ""sample_test"", ""test"", ""test-keys"", ""text_input"",], ""customfield_2222"": ""This is customfield_2222""}}
But I dont know which API to use to "Update Closed Issue"

It's the same API and the same call.

My guess is that your call is failing because the "do not allow edit" flag is set on the issue you are trying to update.

Try editing it in the UI to check that.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,899 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot