Skip to content

Commit 3938171

Browse files
authored
Merge pull request #4 from gmenie-ak/update-reporter
added update_reporter action
2 parents 55c3cd9 + ccba2ec commit 3938171

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

actions/update_reporter.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from lib.base import BaseJiraAction
2+
3+
__all__ = [
4+
'UpdateReporterValue'
5+
]
6+
7+
8+
class UpdateReporterValue(BaseJiraAction):
9+
def run(self, issue_key, username, notify):
10+
issue = self._client.issue(issue_key)
11+
issue.update(reporter={'name': username}, notify=notify)
12+
result = issue.fields.labels
13+
return result

actions/update_reporter.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: update_reporter
3+
runner_type: python-script
4+
description: Update the reporter of a particular JIRA issue.
5+
enabled: true
6+
entry_point: update_reporter.py
7+
parameters:
8+
issue_key:
9+
type: string
10+
description: Issue key (e.g. PROJECT-1000).
11+
required: true
12+
username:
13+
type: string
14+
description: the reporter name.
15+
required: true
16+
notify:
17+
type: boolean
18+
description: jira will send notifications (default is true)
19+
default: true
20+
required: false

0 commit comments

Comments
 (0)