Hi,
I'm trying to make an issue and using parent id in it to make the new issue as a child of the previously created
issue.This is the JSON string i'm using.
{"fields":{"parent":{"id":"10420"},"project":{"id":"10300"},"summary":"a test sub-task of my first issue","issuetype":{"id":"3"},"description":"description"}}
The output coming is :-Failed : HTTP error code : 400
Can somebody tell me the possible mistake i'm making.
thanks
Community moderators have prevented the ability to post new answers.
The JSON you specified is almost correct, you just need to specify the sub-task issue type (5), not the task issue type (3)
So the following should work:
{"fields": {"parent":{"id":"10420"}, "project":{"id":"10300"}, "summary":"a test sub-task of my first issue", "issuetype":{"id":"5"}, "description":"description"} }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when i am giving the issue type as 5 and it is saying that issue type is mismatched give the correct one... issue type : 'name':'task' or 'sub-task'.
please help me friends.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@G V Shabareesh open below page and search for the example: "Creating a sub-task"
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.
says that you have to use the issue key in the parent dictionary. And indeed the id did not work for me, but the issue key did work. Sub-issues are currently added to the end of the list of existing sub-issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, an ID will work as well, but you have to quote it as a string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Isn't the parent has to be the parent the issue key?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.