File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,26 @@ Manage issues
301
301
# Get Issue Edit Meta
302
302
jira.issue_editmeta(issue_key)
303
303
304
+ # Creates an issue or a sub-task from a JSON representation
305
+ jira.create_issue(fields, update_history = None , history = None )
306
+ example:
307
+ fields = dict (summary = ' Into The Night' ,
308
+ project = dict (key = ' APA' ),
309
+ issuetype = dict (name = ' Story' )
310
+ )
311
+ update = dict (issuelinks = {
312
+ " add" : {
313
+ " type" : {
314
+ " name" : " Child-Issue"
315
+ },
316
+ " inwardIssue" : {
317
+ " key" : " ISSUE-KEY"
318
+ }
319
+ }
320
+ }
321
+ )
322
+ jira.create_issue(fields = fields, update = update)
323
+
304
324
# Get issue create meta, deprecated on Cloud and from Jira 9.0
305
325
jira.issue_createmeta(project, expand = " projects.issuetypes.fields" )
306
326
You can’t perform that action at this time.
0 commit comments