Can I edit a comment of an issue using Java JIRA Rest client provided by Atlassian ?

Can I edit a comment of an issue using Java JIRA Rest client provided by Atlassian ? I dond't find any API that supports editing of comment. 

There is REST url to edit the comment as per the link below. https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/updating-an-issue-via-the-jira-rest-apis

I am trying this using Advanced REST client in chrome but getting 405 Method Not Allowed

Link : - http://<some JIRA instance>/rest/api/2/issue/ASM-141/editmeta

Method: PUT

Headers : Authorization : Basic <some encryption>

Content Type : application/json

Body: { "update": { "comments": ["edit": {"id": 177226, "body": "newbody"} ] } }

 

 

 

1 answer

 

Can you not use:

 

PUT /rest/api/2/issue/{issue}/comment/{id}

 

{
"body": "yay, it's not Monday."
}

 

editmeta is not the right call and only allows for GET and according to the REST API browser:

"Returns the meta data for editing an issue.

The fields in the editmeta correspond to the fields in the edit screen for the issue. Fields not in the screen will not be in the editemeta."

 

 

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...

517 views 8 9
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