From 105a2113ca5a8e30351a05296b58bb52c1a36bcd Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Fri, 16 Jun 2023 18:00:38 +0000 Subject: [PATCH] [jipcreate] Fix creating sub-task cards Sub-task cards need specification of fields.parent.key, which this patch adds. For refernce, this is how one creates a sub-task card: === - IssueType: Sub-task Project: GNU Parent: GNU-835 Summary: Test1 === Signed-off-by: Maxim Kuvyrkov --- jipdate/jipcreate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jipdate/jipcreate.py b/jipdate/jipcreate.py index 5803317..c21d19d 100755 --- a/jipdate/jipcreate.py +++ b/jipdate/jipcreate.py @@ -186,6 +186,9 @@ def main(): else: fields["customfield_10014"] = issue["EpicLink"] + if "Parent" in issue.keys(): + fields["parent"] = {"key" : issue["Parent"]} + if "ClientStakeholder" in issue.keys(): csh_fields_dict = issue_meta_data["projects"][0]["issuetypes"][0][ "fields"