Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there any way that we can add comments with custom author using APIs?

Laxman Khokhar August 6, 2024

We are using below listed APIs to add comments but it is getting author from auth token while adding comments, so is there any way that we can use custom author instead of auto assigning author from auth token.

Version 3 :

 

https://yourdomain/rest/api/3/issue/ABC-7322/comment

 

Version 2 :

https://yourdomain/rest/api/2/issue/ABC-7322/comment

Request Payload :

Basic Auth Token Detail : UserName : abc : AuthToken : fghdjwedkjebd

 

{
    "body" : "This is a test comment",
    "author": {
            "self": "",
            "accountId": "accountId",
            "emailAddress": "test@test.com",
            "avatarUrls": {
                "48x48": "",
                "24x24": "",
                "16x16": "",
                "32x32": ""
            },
            "displayName": "Jira Integration",
            "active": true,
            "timeZone": "America/Los_Angeles",
            "accountType": "atlassian"
        }
}

1 answer

1 accepted

0 votes
Answer accepted
Anandhi Arumugam _Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2024

Hi @Laxman Khokhar Currently, the API sets the user who is Authenticating as the Comment Author. We cannot customise it. Hope this helps.

Laxman Khokhar August 7, 2024

Ok thank you.

Anandhi Arumugam _Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2024

Please accept the answer so we can close this out :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Upcoming Jira Events