Skip to content

Commit 2c67e7f

Browse files
committed
Add custom field examples to config file.
1 parent 390d3ec commit 2c67e7f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/jiralert.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,15 @@ receivers:
3333
# JIRA components. Optional.
3434
components: [ 'Operations' ]
3535
# Standard or custom field values to set on created issue. Optional.
36+
#
37+
# See https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#setting-custom-field-data-for-other-field-types for further examples.
3638
fields:
37-
foo: bar
39+
# TextField
40+
customfield_10001: "Random text"
41+
# SelectList
42+
customfield_10002: { "value": "red" }
43+
# MultiSelect
44+
customfield_10003: [{"value": "red" }, {"value": "blue" }, {"value": "green" }]
3845

3946
# File containing template definitions. Required.
4047
template: jiralert.tmpl

0 commit comments

Comments
 (0)