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 Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

78 views 0 3
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