Skip to content

Commit aa424ca

Browse files
committed
Add support for Jira field Component/s
1 parent 4baad88 commit aa424ca

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ The following options are available:
260260
- `execute` - Adds a comment when automated tests are initiated by NEWA.
261261
- `report` - Adds a comment when automated tests results are reported by NEWA.
262262
- `when`: A condition that restricts when an item should be used. See "In-config tests" section for examples.
263-
- `fields`: A dictionary identifying additional Jira issue fields that should be set for the issue. Currently, fields Reporter, Sprint, Status and other fields having type "number", "string", "list/select" should be supported.
263+
- `fields`: A dictionary identifying additional Jira issue fields that should be set for the issue. Currently, fields Reporter, Sprint, Status, Component/s and other fields having type "number", "string", "list/select" should be supported.
264264

265265
### `NEWA_COMMENT_FOOTER` environment variable
266266

newa/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,8 @@ def create_issue(self,
18831883
fdata[field_id] = field_values
18841884
elif field_items == 'option':
18851885
fdata[field_id] = [{"value": v} for v in field_values]
1886+
elif field_items == 'component':
1887+
fdata[field_id] = [{"name": v} for v in field_values]
18861888
else:
18871889
raise Exception(f'Unsupported Jira field item {field_items}')
18881890
elif field_type == 'priority':

0 commit comments

Comments
 (0)