-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New action get_issue_links * overarching get_issue action can call get_issue_links * added get_issue_links to README * add get_issue_links to formatters and adjust priority * bump pack version * fixing formatting --------- Co-authored-by: mjtice <[email protected]>
- Loading branch information
Showing
8 changed files
with
65 additions
and
5 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
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,14 @@ | ||
from lib.base import BaseJiraAction | ||
from lib.formatters import to_links_dict | ||
|
||
__all__ = [ | ||
'GetJiraIssueLinksAction' | ||
] | ||
|
||
|
||
class GetJiraIssueLinksAction(BaseJiraAction): | ||
def run(self, issue_key): | ||
issue = self._client.issue(issue_key) | ||
|
||
result = [to_links_dict(i) for i in issue.fields.issuelinks] | ||
return result |
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,11 @@ | ||
--- | ||
name: get_issue_links | ||
runner_type: python-script | ||
description: Retrieve links for a particular JIRA issue. | ||
enabled: true | ||
entry_point: get_issue_links.py | ||
parameters: | ||
issue_key: | ||
type: string | ||
description: Issue key (e.g. PROJECT-1000). | ||
required: true |
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