diff --git a/example-config.edn b/example-config.edn index 08cda10..98aa302 100644 --- a/example-config.edn +++ b/example-config.edn @@ -12,7 +12,7 @@ ; Jira username (might be something like "flastname"). :assignee #env USER ; Type of issue to create. - :issue-type "Task" + :type-id "Task" ; Pattern to look for in commit messages. Should have single capture group. :issue-pattern "\\[([A-Z]+-[0-9]+)\\]" ; A selmer template for how to add issue to commit messages. diff --git a/jirazzz b/jirazzz index b1d02a9..12331d3 100755 --- a/jirazzz +++ b/jirazzz @@ -276,8 +276,8 @@ {:json {:fields (merge (select-keys opts [:summary :description]) - {:project {:id (:project-id opts)} - :issuetype {:id (:type-id opts)} + {:project {:key (:project-id opts)} + :issuetype {:name (:type-id opts)} :assignee {:name (jira-user opts :assignee)}} (custom-fields opts))}}) ky (:key response)