Skip to content

Commit 3ead004

Browse files
authored
Jira: Add issue link documentation. (atlassian-api#729)
1 parent 235af5c commit 3ead004

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

docs/jira.rst

+21-4
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,33 @@ Manage issues
195195
# Get issue status
196196
jira.get_issue_status(issue_key)
197197
198-
# Create or Update Issue Links
198+
# Get Issue Link
199+
jira.get_issue_link(link_id)
200+
201+
# Create Issue Link
202+
data = {
203+
"type": {"name": "Duplicate" },
204+
"inwardIssue": { "key": "HSP-1"},
205+
"outwardIssue": {"key": "MKY-1"},
206+
"comment": { "body": "Linked related issue!",
207+
"visibility": { "type": "group", "value": "jira-software-users" }
208+
}
209+
}
210+
jira.create_issue_link(data)
211+
212+
# Remove Issue Link
213+
jira.remove_issue_link(link_id)
214+
215+
# Create or Update Issue Remote Links
199216
jira.create_or_update_issue_remote_links(issue_key, link_url, title, global_id=None, relationship=None)
200217
201-
# Get Issue Link by link ID
218+
# Get Issue Remote Link by link ID
202219
jira.get_issue_remote_link_by_id(issue_key, link_id)
203220
204-
# Update Issue Link by link ID
221+
# Update Issue Remote Link by link ID
205222
jira.update_issue_remote_link_by_id(issue_key, link_id, url, title, global_id=None, relationship=None)
206223
207-
# Delete Issue Links
224+
# Delete Issue Remote Links
208225
jira.delete_issue_remote_link_by_id(issue_key, link_id)
209226
210227
# Export Issues to csv

0 commit comments

Comments
 (0)