Forums

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

How can I comment on an issue as the customer from the API

Gal Forer October 29, 2020

Hi, I want to add a comment to an issue via the api, I can add a comment but it always as the admin I do the authentication as admin:token, here is a sample of the url I use 

https://admin@company.net:token@company.atlassian.net/rest/servicedeskapi/request/359/comment,

when I send a post to this url it adds a comment as admin, how can I do this as another user, I want it to be dynamic.

When I create a request I use "raiseOnBehalfOf" is there a similar solution ?

1 answer

0 votes
Kian Stack Mumo Systems
Community Champion
October 29, 2020

Gal,

There isn't a way to post a comment as someone other than the person that has been authenticated through the Rest API.


Thanks,

Kian

Gal Forer October 29, 2020

how can I authenticate a customer dynamically ? I can't add a token to each user, is there a way to generate a token with the api ?

Kian Stack Mumo Systems
Community Champion
October 29, 2020

Gal,

What is it that you are trying to do?

 

Thanks,

Kian

Gal Forer October 29, 2020

I will have my own ui and I want to use the api to handle the tickets so I was I want that when a customer will comment on an issue that the comment will be under his name and not under the admin I use to do actions with the api as it is right now

Kian Stack Mumo Systems
Community Champion
October 29, 2020

Gal,

I think you'd have to do something like this, but I admit that I am unfamiliar with the process.

Thanks,

Kian

Gal Forer October 30, 2020

thanks I'll try it

Suggest an answer

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

Atlassian Community Events