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

This widget could not be displayed.
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 Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

85 views 0 1
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