Is it possible to search comments with the REST API?

Leonardo Perez-Picasso May 18, 2013

Hi,

I need to find all recently modified comments across all issues and projects using the REST API.

Is there a way to get this done?

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2013

No. Unless you're willing to pull all comments for each issue in each project and checking them one by one.

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

{
    "startAt": 0,
    "maxResults": 1,
    "total": 1,
    "comments": [
        {
            "self": "http://www.example.com/jira/rest/api/2.0/issue/10010/comment/10000",
            "id": "10000",
            "author": {
                "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
                "name": "fred",
                "displayName": "Fred F. User",
                "active": false
            },
            "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
            "updateAuthor": {
                "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
                "name": "fred",
                "displayName": "Fred F. User",
                "active": false
            },
            "created": "2013-04-15T05:55:04.491-0500",
            "updated": "2013-04-15T05:55:04.491-0500",
            "visibility": {
                "type": "role",
                "value": "Administrators"
            }
        }
    ]
}

TAGS
AUG Leaders

Atlassian Community Events