Skip to content

Commit 486b27b

Browse files
authored
Allow users to update other fields during transition. (#84)
1 parent 0785da7 commit 486b27b

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

CHANGES.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Change Log
22

3-
## 3.1.0
3+
## 3.2.0
44
- Add new feature to ``jira.get_issue`` to allow for stripping of Jinja templating artifacts from resulting output. (Removes instances of {{ }} from results.)
55

6-
Example: You pull a jira with ``code`` block in a comment or the description. To the API that shows up as {{ code }} which is jinja Templating and will cause
6+
Example: You pull a jira with ``code`` block in a comment or the description. To the API that shows up as {{ code }} which is jinja Templating and will cause
77
issues when trying to use that output anywhere else in a workflow as it cannot find the `code` variable in the context.
8-
8+
99

1010
## 3.0.1
1111

actions/transition_issue.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
from lib.base import BaseJiraAction
22

3-
__all__ = [
4-
'TransitionJiraIssueAction'
5-
]
3+
__all__ = ["TransitionJiraIssueAction"]
64

75

86
class TransitionJiraIssueAction(BaseJiraAction):
9-
10-
def run(self, issue_key, transition):
11-
result = self._client.transition_issue(issue_key, transition)
7+
def run(self, issue_key, transition, fields):
8+
result = self._client.transition_issue(issue_key, transition, fields=fields)
129
return result

actions/transition_issue.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ parameters:
1313
type: string
1414
description: ID of transition (e.g. 11, 21, etc).
1515
required: true
16+
fields:
17+
type: object
18+
description: >-
19+
Fields to update on the issue. For example to set resolution to "Fixed"
20+
{"resolution": {"name": "Fixed"}}.
21+
required: false

pack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- issues
77
- ticket management
88
- project management
9-
version: 3.1.0
9+
version: 3.2.0
1010
python_versions:
1111
- "3"
1212
author: StackStorm, Inc.

0 commit comments

Comments
 (0)