Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

JSM how to create comment on customer behalf (Using ADMIN token)

Hello, I have my own application, which already can create issues in JSM using REST API


curl --request POST \

  --url 'https://{portal}' \

  -u <secret-here>\

  --header 'Accept: application/json' \

  --header 'Content-Type: application/json' \

  --data '{

  "raiseOnBehalfOf": "",

  "serviceDeskId": "1",

  "requestTypeId": "1",

  "requestFieldValues": {

    "summary": "Request JSD help via REST",

    "description": "I need a new *mouse* for my Mac"




Property raiseOnBehalfOf helped me to specify customer's email, and issue was created with customer email as reporter


But now I need to add comment to JSM issue on customer behalf. REST API for comment creation contains only .body and .public fields.

I don't see a property raiseOnBehalfOf or anything like that.

{"errorMessages":["Unrecognized field \"raiseOnBehalfOf\" (Class, not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5877bceb; line: 5, column: 2] (through reference chain:[\"raiseOnBehalfOf\"])"]}% 


I also found java api 


ServiceDeskComment createServiceDeskComment(@Nonnull
                                                     com.atlassian.jira.user.ApplicationUser user,
                                                     ServiceDeskCommentCreateParameters createParameters)
Create a new service project comment with the provided ApplicationUser as the author
But I think I'm unable to use it because we are working with JSM Cloud
I've spent many hours trying to find a solution. And only one way I see is to use Connect App with JWT tokens / OAuth tokens and avoid using Admin API token. But it looks "too much" for my small task. Any tips how to create comments on customer behalf ?

1 answer

0 votes
Pramodh M Community Leader Dec 25, 2021

Hi @Shovel Box 

This is a good starting point, please find the ref link here



so, only the way is to use connect app? I have no idea why rest api allows to create issues on customer behalf but not comments...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

340 views 1 5
Read article

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