Skip to content

Commit 5f35b43

Browse files
authored
Merge pull request #2 from viveksyngh/add_watcher
Add add watcher to issue command
2 parents c7dc409 + 17e3cc4 commit 5f35b43

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

actions/add_watcher.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from lib.base import BaseJiraAction
2+
3+
__all__ = ["JiraIssueAddWatcherAction"]
4+
5+
6+
class JiraIssueAddWatcherAction(BaseJiraAction):
7+
def run(self, issue_key, username):
8+
result = self._client.add_watcher(issue_key, username)
9+
return result

actions/add_watcher.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: add_watcher
3+
runner_type: python-script
4+
description: Add a watcher on a JIRA issue / ticket.
5+
enabled: true
6+
entry_point: add_watcher.py
7+
parameters:
8+
username:
9+
type: string
10+
description: User to add as a watcher.
11+
required: true
12+
issue_key:
13+
type: string
14+
description: Issue key (e.g. PROJECT-1000).
15+
required: true

0 commit comments

Comments
 (0)