How can I add a comment by using Jira API to closed issue?

I’m able to add a comment by using JIRA API to not closed issue but I need to add a comment to closed issue, and I’m getting “bad” request error.

3 answers

0 votes
Steven Behnke Community Champion Nov 05, 2015

If you are using the Default JIRA workflow, it has a property that prevents editing while you are in a Closed status. You must copy the Workflow, associate it with your project, and ensure that you can edit Closed issues by removing that property.

HI Steven,

Thanks for reply.

I got more questions for you.

  • Could you provide an example how it can be done programmatically by using c# and JIRA Rest API?
  • Does account needs to have an administrator credentials to work with Workflow?

1. It's the same code you use to post comments on non-closed issues 2. You need an admin account to alter the workflow to allow comments on closed issues (or create a new workflow to use instead)

Thanks Nic for your comment.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

32 views 1 5
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