I try to create a issue ticket with the REST API
POST /rest/api/3/issue
In the body I set :
Problem solved !
The account creating tickets must be admin on projet level (I was admin on organisation level).
So go to https://XXX.atlassian.net/plugins/servlet/project-config/XXX/people and add you as admin on the project.
Hello Atlassian Community members.
I wanted to update here. The resolution to this post was that we were missing the 'Modify Reporter' permission within the project where this issue was attempting to be created!
Giving ourselves 'Modify Reporter' permission allowed us to successfully create an issue in our project. Best of luck out there!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
The error states that the field reporter is not on the screen that used by the issue type that you you in your API call.
Is the reporter on the field used by the issue type you want to create?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam
Thanks for your quick response.
When I check on web interface I saw the field "Rapporteur" ("Reporter" in french)
On this page : https://XXX.atlassian.net/plugins/servlet/project-config/XXX/issuetypes/10009/fields
And when I create a ticket manually I have the information on the ticket
Is there a way to confirm with an API call ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the API call you are trying to make?
You can use this field, but in your API call you are specifying an issuetype in the call as well.
An issue type in Jira is related to an issue type screen scheme in a project.
On the issue type a single or multiple screen schemes can be used, based on the issue type.
Check which screen scheme is used for the issue type you want to create, in the found screen scheme, see the screen that is used to create the issue, is the field reporter on this screen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Marc - Devoteam
I try to understand the link between data and make request to find the good ids.
I have GET the list of issueType /rest/api/3/issuetypescreenscheme/project?projectId=10033
I got only one :
{
"maxResults": 50,
"startAt": 0,
"total": 1,
"isLast": true,
"values": [
{
"issueTypeScreenScheme": {
"id": "10030",
"name": "LIB: Kanban Issue Type Screen Scheme",
"description": "",
"projects": {
"maxResults": 0,
"startAt": 0,
"total": 0,
"isLast": true,
"values": []
}
},
"projectIds": [
"10033"
]
}
]
}
After I have GET the list of issue screen scheme /rest/api/3/issuetypescreenscheme/mapping
{
"issueTypeScreenSchemeId": "10006",
"issueTypeId": "10009",
"screenSchemeId": "10030"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why are you trying all this from API, use the GUI.
You can't add fields to a screen via the API.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it on the screen, that is used when creating the issue
What is the API you code that you are making.
An example on creating an issue can be found here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just want to create a ticket with the REST API.
I used this doc and this example to do it.
And in the example there is
"reporter": { "id": "5b10a2844c20165700ede21g" }
But when i set it it doesn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Julien Groud,
Thank you for reaching out on the Atlassian Community.
In the example REST API example you are referring to, the reporter field provides an example Atlassian Account ID:
"reporter": { "id": "5b10a2844c20165700ede21g" }
In order for the reporter to be set during issue creation using this field, you will need to know the Atlassian Account ID of the User you would like to make the reporter, then replace that user's ID in your REST API call.
To get your personal Atlassian Account ID. Navigate back to your Jira site, then select your avatar in the top right corner, then select Profile.
Here, review the URL which is loaded for this page, and you will see your unique Atlassian Account ID at the end of the URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nathan Phillips
Yes It is what i am doing.
Here is my request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Julien Groud,
I think that it might be best if you connected with our Technical Support team to better assist you with this error.
I went ahead and created a ticket on your behalf, and we will contact you shortly to further investigate!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem solved !
The account creating tickets must be admin on projet level (I was admin on organisation level).
So go to https://XXX.atlassian.net/plugins/servlet/project-config/XXX/people and add you as admin on the project.
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.