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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

470 views 7 8
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