I am trying to create an issue using rest api but I am getting error.
My url is :
https://avekshaatckt.atlassian.net/rest/api/2/issue/
{
"fields": {
"project":
{
"key": "TICK"
},
"summary": "REST ye merry gentlemen.",
"description": "Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {
"name": "Tasks"
}
}
}
I am getting the error:
{"errorMessages":[],"errors":{"issuetype": "issue type is required"}}
I have also add issue types here:
https://avekshaatckt.atlassian.net/secure/admin/ViewIssueTypes.jspa
I have tried for issue type (Bugs, Task,...) but its not working.
Hi @amit_lodhi ,
Based on the JSON payload you have provided, you should be running your REST API POST request using "Task" and not "Tasks". Therefore, could you please confirm "Task" is available as an issueType to your TICK project.
Could you please attempt on running and provide the output generated:
curl -k -u USERNAME \
-H 'Content-type: application/json' \
-H 'Accept: application/json' \
-d '{"fields":{"project":{"key":"TICK"},"summary":"REST ye merry gentlemen.","description":"Creating of an issue using project keys and issue type names using the REST API","issuetype":{"name":"Task"}}}' \
-X POST https://avekshaatckt.atlassian.net/rest/api/2/issue/
Kind regards,
Rafael
Thanks for the reply!
I have tried this:
{"fields":{"project":{"key":"TICK"},"summary":"REST ye merry gentlemen.","description":"Creating of an issue using project keys and issue type names using the REST API","issuetype":{"name":"Task"}}}
but still getting the same error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @amit_lodhi ,
Since it is a Jira Service Desk request, have you attempted on consuming:
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.