Hi @ALL IT ONE ,
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
In general you need to provide accountId of your user (not name and user).
@Hana Kučerová 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ALL IT ONE ,
in cloud the user needs to have Atlassian account created. Each account has unique id (=accountId), which you need to provide.
Please see here - in the sample body data there's:
"reporter": { "id": "5b10a2844c20165700ede21g" }
This id means accountId.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Hana Kučerová
Thank you for this. Does that mean a user must be created every time a new client reports an issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ALL IT ONE 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @ALL IT ONE . In that case I believe you have two options:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ALL IT ONE ,
please check the screen for a create operation in your project.
Is reporter field on this create screen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ALL IT ONE ,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Hana Kučerová 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ALL IT ONE 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.