What are the API payload fields or a sample issue creation payload that will include the author name
Asked by ALL IT ONE:

We are unable to get their field names from the API documentation.  
I was trying to create an issue via API endpoint using the below payload, but the Author name and e-mail address fields are not being populated on the issue dashboard, what can I do ?  
{  
"fields": {  
"project": {  
"key": "DEMO"  
},  
"creator": {  
"name": "name",  
"emailAddress": "email",  
"displayName": "name"  
},  
"issuetype": {  
"id": "10004"  
},  
"summary": "title",  
"description": "description",  
"customfield_10032": \[  
{  
"add": \[  
{"name": "name"},  
{"email": "email"}  
\]  
}  
\],  
"priority": {  
"id": "priority"  
}  
},  
"user": {  
"name": "name",  
"emailAddress": "email",  
"displayName": "name"  
}  
}  
Can anybody help me?


Answers:
author: Hana Ku?erov?
body: Hi [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) ,

welcome to the Atlassian community!

Please, which API endpoint are you using? Are you trying to create a request on behalf of your customer? If yes, please see [here](https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post)

In general you need to provide accountId of your user (not name and user).

comments: author: ALL IT ONE
body: @[Hana Ku?erov?](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1226304) Thank you

Here is the endpoint I am trying to use: /rest/api/2/issue/  
It is meant to create a new issue for a project.

Despite the fact that we are submitting the creator details in the payload, the issue author remains anonymous on our Atlassian dashboard. Likewise the author's e-mail address too.

This is the part we want you to help us address. Or must users be registered on Atlassian an have accountIds before they can be able to submit an issue?

![](https://fiverr-res.cloudinary.com/image/upload/f_auto,q_auto,t_message_attachment_large_thumb/v1/secured-attachments/messaging_message/attachment/d7ca671c7d2f5bdd1f5b842153abbba1-1706795312724/Capture.JPG?__cld_token__=exp=1706831448~hmac=438606989fedf00a55c913c67669c3d9c28617bc31539f94dc2c2428abef1564)


author: ALL IT ONE
body: [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) can you help us?


author: Hana Ku?erov?
body: Hi [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) ,

in cloud the user needs to have [Atlassian account](https://support.atlassian.com/atlassian-account/docs/what-is-an-atlassian-account/) created. Each account has unique id (=accountId), which you need to provide.

Please see [here](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-post) - in the sample body data there's:

```
 "reporter": { "id": "5b10a2844c20165700ede21g" }
```

This id means accountId.


author: ALL IT ONE
body: [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304)   
Thank you for this. Does that mean a user must be created every time a new client reports an issue?


author: Hana Ku?erov?
body: [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) I still don't understand much your usecase. To which type of Jira project are you trying to create an issue? Is it Jira Software or Jira Service Management?

You are saying your clients are creating an issue. Why are you doing this using REST API? Are these clients users of your Jira and have product license or are they customers in your portal?


author: ALL IT ONE
body: [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304)

We use Jira Service Management. A problem is reported on a website using a form (all visitors can do this) and a ticket is created from this via an API in Jira. The users are therefore not registered in Jira and do not have a Jira license. That wouldn't make any sense from a price point of view. You can understand it as a kind of helpdesk... the ticket is then processed internally via Jira. That's why we, as the author of the ticket, would like to provide the name specified on the form.


author: Hana Ku?erov?
body: Thanks [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) . In that case I believe you have two options:

1. As a reporter use one of your users with JSM licence and create custom fields to store information about your customers (for example one for the customer name and one for the customer e-mail).
2. Create customer account in JSM project (see [here](https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-customer/#api-rest-servicedeskapi-customer-post)) and use the accountId for the reporter. This way your customers will be able to login to your portal later and communicate further with you about the request. Also your customers don't need any license, you can have as many customers as you like for free. You only pay for JSM agents.


author: ALL IT ONE
body: Hi,   
I got this error while trying to add the reporter field  

Error message:  
{"errorMessages":\[\],"errors":{"reporter":"Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown."}}  

Part of the payload used:  
"fields" =\> \[  
"reporter" =\> \[  
"accountId" =\> "62bd712ffbc1f7c647b92fb4",  
"self" =\> "<https://all-it-one.atlassian.net/rest/api/2/user?accountId=62bd712ffbc1f7c647b92fb4>",  
"name" =\> "ALL IT ONE",  
"emailAddress" =\> "admin@all-it-one.ch",  
"active" =\> true  
\],  
"project" =\> \[


author: Hana Ku?erov?
body: Hi [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) ,

please check the screen for a create operation in your project.

Is reporter field on this create screen?


author: ALL IT ONE
body: [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) Please how do I do that?


author: Hana Ku?erov?
body: Hi [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) ,

please navigate to your project settings \> left menu - Screens \> here you need to find screen scheme for the issue type, you are creating. In the detail of the screen scheme you should see screens for three operations, open the one for create issue. Check, if reporter is available in the list of fields.


author: ALL IT ONE
body: [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) Thank you.  

I checked and there was no such field named reporter. I tried to create one as a custom field but it is still did not work.


author: Hana Ku?erov?
body: [@ALL IT ONE](/t5/user/viewprofilepage/user-id/5419438) You need to add system field Reporter to the screen.

Newly created custom field Reporter won't work and it will be confussing for your users. I suggest delete the custom field again.


Tags: cloud

jira-service-management

jira-service-management-cloud