Posting child item via Python REST API
Hello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:
------------------------------
Marijan Mileti?
RIMAC
------------------------------
Comments
-
Hi Marijan,
If you use "childItemType" instead of "ChildItem", does that behaviour change?
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
------------------------------
-------------------------------------------
Original Message:
Sent: 02-23-2023 05:25
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:print(jama_client.post_item(project=175, item_type_id=31, child_item_type_id=207, location={'parent': "{'item': 903729, 'project' : 175}"}, fields={'setKey' : 'Test', 'name' : 'ChildItem'}))I would get another item in top hierarchy instead of child item. Does anybody knows what's the error?
Marijan Mileti?
RIMAC
------------------------------
0 -
Hi Carly,
------------------------------
thank you for your answer.
You mean in the "fields" under "name"?
Marijan Mileti?
RIMAC
------------------------------
-------------------------------------------
Original Message:
Sent: 02-23-2023 11:34
From: Carly Rossi
Subject: Posting child item via Python REST APIHi Marijan,
If you use "childItemType" instead of "ChildItem", does that behaviour change?
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
------------------------------
Original Message:
Sent: 02-23-2023 05:25
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:print(jama_client.post_item(project=175, item_type_id=31, child_item_type_id=207, location={'parent': "{'item': 903729, 'project' : 175}"}, fields={'setKey' : 'Test', 'name' : 'ChildItem'}))I would get another item in top hierarchy instead of child item. Does anybody knows what's the error?
Marijan Mileti?
RIMAC
------------------------------
0 -
You're welcome, and yes.
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
------------------------------
-------------------------------------------
Original Message:
Sent: 02-23-2023 12:56
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHi Carly,
------------------------------
thank you for your answer.
You mean in the "fields" under "name"?
Marijan Mileti?
RIMAC
------------------------------
Original Message:
Sent: 02-23-2023 11:34
From: Carly Rossi
Subject: Posting child item via Python REST APIHi Marijan,
If you use "childItemType" instead of "ChildItem", does that behaviour change?
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
Original Message:
Sent: 02-23-2023 05:25
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:print(jama_client.post_item(project=175, item_type_id=31, child_item_type_id=207, location={'parent': "{'item': 903729, 'project' : 175}"}, fields={'setKey' : 'Test', 'name' : 'ChildItem'}))I would get another item in top hierarchy instead of child item. Does anybody knows what's the error?
Marijan Mileti?
RIMAC
------------------------------
0 -
I've tried it, it didn't work. It only changed the name, but still not an child item
------------------------------
Marijan Mileti?
RIMAC
------------------------------
-------------------------------------------
Original Message:
Sent: 02-24-2023 17:23
From: Carly Rossi
Subject: Posting child item via Python REST APIYou're welcome, and yes.
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
------------------------------
Original Message:
Sent: 02-23-2023 12:56
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHi Carly,
------------------------------
thank you for your answer.
You mean in the "fields" under "name"?
Marijan Mileti?
RIMAC
Original Message:
Sent: 02-23-2023 11:34
From: Carly Rossi
Subject: Posting child item via Python REST APIHi Marijan,
If you use "childItemType" instead of "ChildItem", does that behaviour change?
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
Original Message:
Sent: 02-23-2023 05:25
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:print(jama_client.post_item(project=175, item_type_id=31, child_item_type_id=207, location={'parent': "{'item': 903729, 'project' : 175}"}, fields={'setKey' : 'Test', 'name' : 'ChildItem'}))I would get another item in top hierarchy instead of child item. Does anybody knows what's the error?
Marijan Mileti?
RIMAC
------------------------------
0 -
Got it! In that case, this would best dug into further through the ticketing process (support.jamasoftware.com) with our Support team. As a heads up, if you aren't a Named Support Contact for your organization, I'd recommend working with a Named Support Contact within your organization to file the ticket.
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
------------------------------
-------------------------------------------
Original Message:
Sent: 02-26-2023 23:07
From: Marijan Mileti?
Subject: Posting child item via Python REST APII've tried it, it didn't work. It only changed the name, but still not an child item
------------------------------
Marijan Mileti?
RIMAC
------------------------------
Original Message:
Sent: 02-24-2023 17:23
From: Carly Rossi
Subject: Posting child item via Python REST APIYou're welcome, and yes.
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
Original Message:
Sent: 02-23-2023 12:56
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHi Carly,
------------------------------
thank you for your answer.
You mean in the "fields" under "name"?
Marijan Mileti?
RIMAC
Original Message:
Sent: 02-23-2023 11:34
From: Carly Rossi
Subject: Posting child item via Python REST APIHi Marijan,
If you use "childItemType" instead of "ChildItem", does that behaviour change?
------------------------------
Carly Rossi // she/her
Community Manager // Jama Software
Portland, OR
Original Message:
Sent: 02-23-2023 05:25
From: Marijan Mileti?
Subject: Posting child item via Python REST APIHello everyone,
I am new to Jama REST API (Python), so I would appreciate if you could help me on this?
I was trying to post an item on top of hierarchy and I succeeded but when I wanted to add a child item to some of the items in top hierarchy using this line of code:print(jama_client.post_item(project=175, item_type_id=31, child_item_type_id=207, location={'parent': "{'item': 903729, 'project' : 175}"}, fields={'setKey' : 'Test', 'name' : 'ChildItem'}))I would get another item in top hierarchy instead of child item. Does anybody knows what's the error?
Marijan Mileti?
RIMAC
------------------------------
0