Hi, I wanted to create an issue using postman using this api -
https://name.atlassian.net/rest/api/3/issue
so as per the documentation lot of fields are there-
The Jira Cloud platform REST API
But the issue type is confusing me . How to add the issue type?
Hi @Mansi Gusain ,
The error is related to parent field in REST API, have you used that one in your request?
For more details, you can refer this article: https://www.atlassian.com/blog/developer/creating-a-jira-cloud-issue-in-a-single-rest-call
Let me know if you still having issues.
Regards,
Mahesh Shinde
Hi thanks for this article I was able to use the following body -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi what are the names I can give to the api -
1. Task works
but not the bug or story...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your parent key should be like MANSI-123 etc
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.
As you are creating Story or Task, parent key needs to be Epic.
It is not possible that Epic will have key = MANSI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
okay Vishal please correct me if I am wrong, I can create tasks directly in the project but to create a bug, story I need epic?
See this is the operation -
So I am able to create the task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay I got the answer, on the main UI of the project I have the feature to create the issue types-
So now can use the api to create different types of issues for me.
Thankyou both for your help and prompt replies. Kudos to the support team. Thanks!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to Atlassian community!
As per the REST API call for create issue,
You have to use the field like as below:
"issuetype": { "id": "<number>" }
You can get the issuetype ID details from admin section of Jira.
Please, let me know if you have any questions.
Regards,
Mahesh Shinde
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thankyou for replying, the so I went to the admin section there the id was 10004
Now from here I add it to the id in the body for 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.
Parent field is required if you are creating subtask issue for parent issue, you can remove it.
Regards,
Mahesh Shinde
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.