-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jira] two new methods: download_attachments_from_issue and get_attac…
…hments_ids_from_issue (#1334) * fixing minor issue in scrap_regex_from_issue method * new Confluence method scrap_regex_from_page+ docs + examples * added method get_attachments_ids_from_page to jira.py * added method download_attachments_from_issue * refactoring download_all_attachments_from_page method * finished download_attachments_from_issue * added two new methods: download_attachments.from_issue and get_attachments_ids_from_issue --------- Co-authored-by: gkowalc <>
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from atlassian import Jira | ||
|
||
jira_cloud = Jira(url="<url>", username="username", password="password") | ||
jira_dc = Jira(url="url", token="<token>>") | ||
path = "/Users/<username>>/PycharmProjects/api_python_atlassian_features/api_python_atlassian_features/atlassian-python-api/attachments" | ||
# JIRA DC using custom directory path | ||
jira_dc.download_attachments_from_issue("TEST-1", path=path, cloud=False) | ||
# Jira cloud. Attachemtns will be saved to same director where script is being executed. | ||
jira_cloud.get_attachments_ids_from_page("SC-1", cloud=True) |