Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i create comment by customer on "customer request" with api?

Kanan Mammadov July 20, 2023

how can i create comment by customer on "customer request" with api?

1 answer

0 votes
Marc - Devoteam
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.
July 20, 2023
Kanan Mammadov July 20, 2023

Hi @Marc - Devoteam  thanks for the answer . what I am looking for is to POST a comment on behalf of a different user with my access user . Is that actually possible? 

Like Marc - Devoteam likes this
Marc - Devoteam
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.
July 20, 2023

Hi @Kanan Mammadov 

I would try to alter the following in the json

"accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b",

"name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b",

"key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b",

"emailAddress": "fred@example.com",

"displayName": "Fred F. User",

 

This will require that you  are able to get the account ID of the user that would need to be the reporter of the comment

Kanan Mammadov July 20, 2023

Hi @Marc - Devoteam  

I believe the fields you mentioned are in the 201 Created response. However, I am willing to POST a comment on behalf of a different user. 

Please, let me know if I am missing on something or these fields must be added to input parameters. 

Thanks again for your efforts!
Kanan

Like Marc - Devoteam likes this
Marc - Devoteam
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.
July 20, 2023

I see,

Yes I don't think you are able set a comment based upon an other user.

Suggest an answer

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

Atlassian Community Events