Skip to content

Commit a1b2f5c

Browse files
committed
#1568 Add doc of create_issue method
1 parent c98bb64 commit a1b2f5c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/jira.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,26 @@ Manage issues
301301
# Get Issue Edit Meta
302302
jira.issue_editmeta(issue_key)
303303
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+
304324
# Get issue create meta, deprecated on Cloud and from Jira 9.0
305325
jira.issue_createmeta(project, expand="projects.issuetypes.fields")
306326

0 commit comments

Comments
 (0)