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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

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 ?

Gal,

What is it that you are trying to do?

 

Thanks,

Kian

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

Gal,

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

Thanks,

Kian

thanks I'll try it

Suggest an answer

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you