-
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.
- Loading branch information
gkowalc
committed
Jan 31, 2024
1 parent
7c95fd6
commit bab4806
Showing
1 changed file
with
3 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
from atlassian import Jira | ||
|
||
## This feature can be useful if you need to scrap some data from issue description or comments. | ||
# This feature can be useful if you need to scrap some data from issue description or comments. | ||
jira = Jira(url="http://localhost:8080", username="admin", password="admin") | ||
regex = r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\[?\.\]?){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" # regex for ipv4 address + ipv4 with [.] instead of dot | ||
issue = "TEST-1" # id of the jira issue | ||
result = jira.scrap_regex_from_issue( | ||
issue, regex | ||
) ## scrap_regex_from_issue will return results of positive regexes matches from issue description and issue comments. | ||
result = jira.scrap_regex_from_issue(issue, regex) | ||
# scrap_regex_from_issue will return results of positive regexes matches from issue description and issue comments. |