Skip to content

Commit

Permalink
[jipcreate] Fix creating sub-task cards
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
maxim-kuvyrkov committed Jun 27, 2023
1 parent 2392109 commit 105a211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jipdate/jipcreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 105a211

Please sign in to comment.