Skip to content

Commit

Permalink
Merge pull request #4 from gmenie-ak/update-reporter
Browse files Browse the repository at this point in the history
added update_reporter action
  • Loading branch information
viveksyngh authored Mar 18, 2020
2 parents 55c3cd9 + ccba2ec commit 3938171
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions actions/update_reporter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lib.base import BaseJiraAction

__all__ = [
'UpdateReporterValue'
]


class UpdateReporterValue(BaseJiraAction):
def run(self, issue_key, username, notify):
issue = self._client.issue(issue_key)
issue.update(reporter={'name': username}, notify=notify)
result = issue.fields.labels
return result
20 changes: 20 additions & 0 deletions actions/update_reporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: update_reporter
runner_type: python-script
description: Update the reporter of a particular JIRA issue.
enabled: true
entry_point: update_reporter.py
parameters:
issue_key:
type: string
description: Issue key (e.g. PROJECT-1000).
required: true
username:
type: string
description: the reporter name.
required: true
notify:
type: boolean
description: jira will send notifications (default is true)
default: true
required: false

0 comments on commit 3938171

Please sign in to comment.