-
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] new feature added scrap_regex_from_issue + docs + example
- Loading branch information
gkowalc
committed
Jan 31, 2024
1 parent
ac0e1fe
commit 7c95fd6
Showing
4 changed files
with
50 additions
and
1 deletion.
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 | ||
|
||
## 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. |
Empty file.